Solved

How do I calculate load averages over a 24 hour period?

Posted on 2004-09-29
4
186 Views
Last Modified: 2010-03-04
I am running an Apache web server on Red Hat Enterprise.
I am concerned that my load averages are getting too high and causing bottlenecks.

Is there a way that I can chart by load averages over a 24 hour period - other than using the TOP command and watching my monitor for the 24 hour period.

Thanks
Les
0
Comment
Question by:lesfazekas
  • 2
4 Comments
 
LVL 19

Expert Comment

by:ramazanyich
Comment Utility
check http://awstats.sourceforge.net
It is a useful log file analyzer which also shows spreading of requests per hours.
0
 

Author Comment

by:lesfazekas
Comment Utility
Thanks but I have very detailed log analyzers - they don't show the load on the system as a whole due to CGI and Perl scripts and database calls
0
 
LVL 19

Expert Comment

by:ramazanyich
Comment Utility
If you want check system usage then in RedHat Enterprise you can use sar utility.
It collects all system information (CPU, memory, disk usage) every minute.
Check
#man sar
for usage.
reports of sar can be found also in /var/log/sa directory
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
Comment Utility
You can use mrtg to make a graph of the load. It makes graphs for the last 24 h, 7 day, 31 days, 1 year.
Example can be seen here: http://testix.de/~hernst/loadavg.html

We use a config for mrtg like this:
Title[loadavg]: Load average
PageTop[loadavg]: - % loadavg over 5 minutes -
Target[loadavg]: `( ( echo -n "100 * "; cat /proc/loadavg | cut -f 2 -d " ") | bc; ( echo -n "100 * "; cat /proc/loadavg | cut -f 2 -d " ") | bc )`
Unscaled[loadavg]: dwmy
WithPeak[loadavg]: wmy
MaxBytes[loadavg]: 800
Options[loadavg]: absolute, nopercent, gauge, growright
Colours[loadavg]: Green#00ff00,
                Green#00ff00,
                Dk Green#008800,
                Dk Green#008800

YLegend[loadavg]: loadavg
ShortLegend[loadavg]: &nbsp
Legend1[loadavg]:loadavg
Legend3[loadavg]:Maximal load
LegendI[loadavg]: loadavg:
LegendO[loadavg]:
XSize[loadavg]: 500
YSize[loadavg]: 235
YTics[loadavg]: 7
YTicsFactor[loadavg]: 0.01
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now