View previous topic :: View next topic |
Author |
Message |
Gschuer
Joined: 15 Dec 2004 Posts: 7
|
Posted: Wed Dec 15, 2004 4:28 am Post subject: LogAnalyzer create report -> CPU 100% |
|
|
Hello,
This week I have purchased Host Monitor Lite and LogAnalyzer.
I have configured hostmonitor now and ik works great. With a .las file loganalyzer creates a report every 15 minutes.
I use a HTML-log file at my C:/ partition. The target for putting the HTML report with charts (1 report only) at my D:/ partition takes about 2 seconds 100% CPU. I set an alert in the hostmonitor when the cpu get 100% load the system must mail me.
The log file has a size of 16Mb and is in the HTML format. Is it normal that it takes the full performance of the cpu?
I want to use this server as a webserver, but when every 15minutes my cpu get 100%, the performance for the other applications is zero!
I log the cpu (10sec), memory (30sec), hd-space at c: and d: (5min), network traffic(10sec).
Server:
Supermicro Mainboard P4
P4 2.8Ghz
2*512Mb Dual Channel
2*160Gb raid 1 config
Any suggestions? |
|
Back to top |
|
|
Gschuer
Joined: 15 Dec 2004 Posts: 7
|
Posted: Wed Dec 15, 2004 6:41 am Post subject: |
|
|
I've just changed the format of the log file. I changed it into plain text (txt).
The monitor is now running. This evening I'll look again and hope that creating reports of a plain txt file goes faster than from a HTML-file.
Software spec:
Windows 2003 WebEdition + updates
Plesk 7 for Windows
Host Monitor 4.86 + LogAnalyzer 4.2
Greetz |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12799 Location: USA
|
Posted: Wed Dec 15, 2004 1:55 pm Post subject: |
|
|
Quote: | The log file has a size of 16Mb and is in the HTML format. Is it normal that it takes the full performance of the cpu? |
Yes, Log Analyzer uses CPU a lot when it generates images.
If system performance is important, I would recommend start Log Analyzer in the IDLE priority class. E.g. using standard command start: start /LOW /D"c:\Program Files\HostMon4" LogsMan.exe -script:....
Regards
Alex |
|
Back to top |
|
|
Gschuer
Joined: 15 Dec 2004 Posts: 7
|
Posted: Wed Dec 15, 2004 2:29 pm Post subject: |
|
|
ok, I will test it tomorrow.
Is it possible to make charts of the cpu during one month? I check the cpu every 10 seconds. Will the chart still be clear to look at?
I know that I can clear the statistics every month, but my consideration is that the chart will be too complex. The size of the chart is 600pixels by 300.
Thanks for the answer. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12799 Location: USA
|
Posted: Wed Dec 15, 2004 5:04 pm Post subject: |
|
|
every 10 sec for a month? 6*60*24*30=259200 records. I am afraid chart will not provide clear picture. |
|
Back to top |
|
|
Gschuer
Joined: 15 Dec 2004 Posts: 7
|
Posted: Thu Dec 16, 2004 1:15 am Post subject: |
|
|
that's right, my company offers hosting and we want clear charts of one month, that we can see what day is the most active.
MRTG makes charts of one week, one month, one year, I suppose that Host monitor doesn't support this feature. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12799 Location: USA
|
Posted: Thu Dec 16, 2004 12:13 pm Post subject: |
|
|
Quote: | that's right, my company offers hosting and we want clear charts of one month, that we can see what day is the most active. |
So, you need average CPU usage on daily basis? Possible solution:
- disable common loggin for this test (unmark "Use common log" option)
- create HM Script with 2 commands:
StartProgram someBATfile %DateTime% %TestName% %Status% %AverageReply% %TestMethod%
ResetTest name_of_the_CPU_Usage_test
1st command will start script (BAT file) that should add record to the log using %AverageReply% instead of %Reply% variable. If you are using text log, its easy to add record using single command (e.g. "echo [%1] %2 %3 %4 %5 >>logfilename.txt" USE TAB BETWEEN PARAMETERS).
2nd command will reset statistical information for the test
- create "scheduled" action (http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#scheduledaction) that should start HM Script
- use built-in Scheduler to start that action once a day (Scheduler page in the Options dialog)
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12799 Location: USA
|
Posted: Fri Dec 17, 2004 11:16 am Post subject: |
|
|
I think we should add some switch, like
Chart mode:
- display all data
- display average on hourly basis
- display average on daily basis
- display average on weekly basis
- display average on monthly basis
Regards
Alex |
|
Back to top |
|
|
Gschuer
Joined: 15 Dec 2004 Posts: 7
|
Posted: Wed Dec 29, 2004 10:07 am Post subject: |
|
|
indeed, that would be very nice! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12799 Location: USA
|
Posted: Wed Dec 29, 2004 11:23 am Post subject: |
|
|
Its not a problem to calculate average value. Problem - how separate good/bad test results in this case?
Regards
Alex |
|
Back to top |
|
|
|