Hello,
I have an ensim server for my important websites and customers.
Average load is normally under 0.1 but sometimes ( perhaps 3-4 times a week ) it rises to 40-60 for a few minutes.
As I am not sure how much it happens I can not guess its reason correctly. (I have put cron times to 3AM so I guess cron jobs do not cause this.)
Is there any software which logs server load and does not create load on server itself? (I have removed HotSANIC as it creates very high loads on server and doubles server load).
Also It would be very good if it can take snap shots of TOP command when load goes higher than 2.
If there is not such a thing I may want to develop a simple program myself.
Regards,
mac
zappp
01-11-2003, 07:02 AM
i have had the same problem... and I was unable to found the reson :( though, you should check that you`re using the latest SSL version, because of the security...
My machine was infected by SSL worm, that was one of the reasons of my big server`s load.
When I moved to another provider my problem just disappeared, so i think that could be a hardware problem as well.
eddy2099
01-11-2003, 07:06 AM
Also It would be very good if it can take snap shots of TOP command when load goes higher than 2.
If there is not such a thing I may want to develop a simple program myself.
The last time I asked that question, I was told to go to SHELL and type 'sar'
This give you a snapshot of load over with a 10 minutes interval (or whatever your cronjob is set at) and resetted at the stroke of midnight.
Hormigo
01-11-2003, 10:01 AM
server.STATS ( http://www.clook.net/freescripts/ )
To see a demo of serverSTATS click here (http://www.clook.net/freescripts/serverSTATS/demo/)
A rackshack user wrote a GREAT rpm and HOTO on MRTG which will not only keep track on how much traffic you transfer, but also load, CPU, memory, email usage, and more. Great stuff! http://forum.rackshack.net/showthread.php?s=&threadid=15447
If you don't want to use the RPM you can download and compile it yourself, but this RPM comes already setup to log all sorts of things.
Here's an example: http://64.246.24.33/mrtg/load.html
Owen
zdwebhosting
01-11-2003, 09:56 PM
you could setup a script that would
run uptime and then save it to a file or append it whatever.
and then have it cat filename | mail -s "daily load" youatyouremail.com
there you could have it emailed to you daily if you setup a cron to do it :)
just mess around with it ;)
Thank you everyone,
Those scripts are very useful but I think Zak's suggestion is better for me :)
MRTG script should be very good but I guess it will create some loads on server (HotSANIC has the same features and does it).
Regards,
Mac
zdwebhosting
01-12-2003, 02:54 AM
wmac: glad i could provide some usefull info :)
and i hav'nt setup one before thats why i dont know which way you would want to go but just find out how to | pipe data to an append command to a file then cat it and pipe it to email all on crons :)
Very little. It runs for less than one second every 5 minutes.
Owen