LogAnalyzer create report -> CPU 100%

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Gschuer
Posts: 7
Joined: Wed Dec 15, 2004 4:22 am

LogAnalyzer create report -> CPU 100%

Post by Gschuer »

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?
Gschuer
Posts: 7
Joined: Wed Dec 15, 2004 4:22 am

Post by Gschuer »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Gschuer
Posts: 7
Joined: Wed Dec 15, 2004 4:22 am

Post by Gschuer »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

every 10 sec for a month? 6*60*24*30=259200 records. I am afraid chart will not provide clear picture.
Gschuer
Posts: 7
Joined: Wed Dec 15, 2004 4:22 am

Post by Gschuer »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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/mfra ... uledaction) that should start HM Script
- use built-in Scheduler to start that action once a day (Scheduler page in the Options dialog)

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Gschuer
Posts: 7
Joined: Wed Dec 15, 2004 4:22 am

Post by Gschuer »

indeed, that would be very nice!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Its not a problem to calculate average value. Problem - how separate good/bad test results in this case?

Regards
Alex
Post Reply