
|
View Full Version : CPU/Memory/MySQL Usage realtime?
arbet 03-05-2008, 12:01 PM Hi all,
When I check CPU/Memory/MySQL Usage in WHM , some accounts show that their are consuming a high % of the resources. However, when I check this in top, it seems as normal.
I suppose that these stats are not realtime. However, is there anyway I could determine why the load had been high at previous times?
cbtrussell 03-05-2008, 10:28 PM We run a simple homegrown snapshot script every 5 mins that captures the output of ps, netstat and several other utilities. We have it setup to keep 24 hours worth of entries, then cleans up behind itself. Works very well to let us post-mortem any issues that caused a problem.
supportoncall 03-06-2008, 06:24 AM Hello arbet,
Yes there are the ways to determine what exactly happening on the server , and what exactly like any page , any script , any process is consuming the resources on the server.I can have it done if you are looking for so.
arbet 03-06-2008, 06:39 AM Hello arbet,
Yes there are the ways to determine what exactly happening on the server , and what exactly like any page , any script , any process is consuming the resources on the server.I can have it done if you are looking for so.
I am more looking for ideas to monitor previous load rather than someone to do the job.
Are there any existing open source/commercial solutions for it too?
LQD Internet Limited 03-07-2008, 08:18 AM arbet,
I created a solution to this for myself a while back which provides a real time, self updating log of you stats. It worked perfect and looked beautiful apart from one major drawback, if you take realtime stats with pretty much moth methods, constantly. If viewed for a long time, the script itself starts to consume server resources.
I am in the process of modifying my script to check the stats realtime from a chached status update, taken every minute by cron.
If you like, once i get it fully functional i can send it to you.
Harry
arbet 03-07-2008, 09:34 AM arbet,
I created a solution to this for myself a while back which provides a real time, self updating log of you stats. It worked perfect and looked beautiful apart from one major drawback, if you take realtime stats with pretty much moth methods, constantly. If viewed for a long time, the script itself starts to consume server resources.
I am in the process of modifying my script to check the stats realtime from a chached status update, taken every minute by cron.
If you like, once i get it fully functional i can send it to you.
Harry
Harry, it would be great if you could send it to me as it is so I could check the code a bit. I might have some ideas too.
LQD Internet Limited 03-07-2008, 09:41 AM What's your knowledge of bash and perl scripting?
I'll send it once i have it working and am not at work :p
arbet 03-07-2008, 09:49 AM What's your knowledge of bash and perl scripting?
I'll send it once i have it working and am not at work :p
basic skills, but I am still able to understand the code.
Back to work :D
James Peter 03-07-2008, 09:56 AM Yep, If you dont mind, I'd probably like to see once its done :)
|