Re: How to discover which user causing high load? [message #50619 is a reply to message #50599] |
Sun, 22 September 2013 11:13 |
|
postcd
Messages: 73 Registered: April 2013
|
Member |
|
|
votsalo wrote on Fri, 20 September 2013 11:38perhaps you can use a script like this:
for ctid in `vzlist -1`
do
echo $ctid` vzctl exec $ctid uptime`
done
Thx, this script returns list of VMs and their load, uptime like:
320 07:08:34 up 1 day, 45 min, 0 users, load average: 0.12, 0.04, 0.01
330 07:08:34 up 27 days, 50 min, 0 users, load average: 0.21, 0.08, 0.04
The load average is for the VM assigned cpu or for entire node server? But there i dont see the mysql process usage for VMs
|
|
|