Solved

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

Posted on 2004-09-29
4
192 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
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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