Friday, 27 May 2011

Load in a server

Hello,


I have my own server. When i was trying to access my domain i can feel that the load of my server is too high. My domain is taking longer time to load. My server is based on Linux CentOS 5.5. I don't know how to check the load of the server. Sorry I'm new to linux. Can you help me????


Sol: You can use the following commands to check the load of the server.

top -c - this can be used to see the list of top process running under your server.

w - this is used to find the load in a server. used for finding average load time.

mysqladmin proc - this is very useful command to check the mysql database 
quire accessed through your website. Due to the domain 
linked with the database it can cause the server load to be 
high.

pidof httpd - this command is used to find the number of user accessing your apache httpd

cat /proc/user_beancounters - this command is used to check the fault count of  any particular process. If a load or link has some access error it will be added as fault count in this list. so you can able to identify the process which is causing the issue.

Hope this helps you to check the server load.

No comments: