KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

LogAnalyzer create report -> CPU 100%

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Gschuer



Joined: 15 Dec 2004
Posts: 7

PostPosted: Wed Dec 15, 2004 4:28 am    Post subject: LogAnalyzer create report -> CPU 100% Reply with quote

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
View user's profile Send private message
Gschuer



Joined: 15 Dec 2004
Posts: 7

PostPosted: Wed Dec 15, 2004 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Dec 15, 2004 1:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Gschuer



Joined: 15 Dec 2004
Posts: 7

PostPosted: Wed Dec 15, 2004 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Dec 15, 2004 5:04 pm    Post subject: Reply with quote

every 10 sec for a month? 6*60*24*30=259200 records. I am afraid chart will not provide clear picture.
Back to top
View user's profile Send private message Visit poster's website
Gschuer



Joined: 15 Dec 2004
Posts: 7

PostPosted: Thu Dec 16, 2004 1:15 am    Post subject: Reply with 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.

MRTG makes charts of one week, one month, one year, I suppose that Host monitor doesn't support this feature.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Dec 16, 2004 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Dec 17, 2004 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Gschuer



Joined: 15 Dec 2004
Posts: 7

PostPosted: Wed Dec 29, 2004 10:07 am    Post subject: Reply with quote

indeed, that would be very nice!
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Dec 29, 2004 11:23 am    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index