Ramkumar wrote:
Hi Friends,
                  How to calculate server's performance,load and CPU
usage.we have MySQL  DB.Accessing DB with our Java Application in CentOS. i
used "top " command.Is there any other command available?.i go through with
top command ,MySQL shows 150% of CPU usage. is it in a right manner (MySQL
usage).Guide Me to get these details.

May be vmstat can help,

$ while true; do vmstat 1 2 | tail -1 | awk '{print $13+$14;}'; done

13th field in vmstat will give overall user% and 14th field will give ovrall system%. Above commandline will print overall cpu% until you press CTRL+C.

Thanks,
Mohan R

_______________________________________________
To unsubscribe, email [email protected] with "unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to