how to check load via ssh and check files causing load ??
I would like to know how to check load via ssh and check files causing load ??
I want the ssh codes for 2 different set of control panels, one with cpanel+whm and other with kloxo+hypervm
and I would also know how to check the files causing the load, such as some files could have been interrupted while processing, so they could be causing load some times, so I want to stop such processes if any are running on the vps on my friends accounts
you can check the load via TOP command , You can go into more details with the help of man command, Process causing load can be traced using strace -p pid command i believe well you need to explore more options via shell.
www.24x7servermanagement.com Server Management, Server Security, Server Monitoring. India's Leading Managed Service Provider !! Skype: techs24x7
Using 'top' (as mentioned above) you can use Shift+P and Shift+M to sort by CPU or memory usage. Press them again to change from ascending to descending order.
If you just want to check load, you can use 'w' or 'uptime' rather than 'top'.
If MySQL is showing a high amount of load, you can use the query 'SHOW PROCESSLIST' when logged into the MySQL console.
You can check the TCP connections to your server with something like 'netstat -at | less'.
You can check your auth log (check /etc/syslog.conf) for brute force attacks or lots of SMTP connections using something like 'tail -f /var/log/secure' or 'tail -f /var/log/auth.log'. Your location of the log files may vary. Press Ctrl+C to stop scrolling the log.
You could also install the 'sysstat' package to use tools like 'iostat' to check HDD performance.
Jeff Standen, Chief of R&D, WebGroup Media LLC. - LinkedIn Cerb is a fast and flexible web-based platform for business collaboration and automation. http://www.cerbweb.com/