Solved

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

Posted on 2004-09-29
4
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12183040
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
ID: 12183869
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
ID: 12184269
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
ID: 12187539
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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 …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

615 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