how to check CPU performance in linux

RegisterLogin
how to check CPU performance in linux
Post Description: my linux server is running slow more than ever, i like to know which application is hogging all the cpu out of my server
Tags: how, to, check, cpu, performance, in, linux
This Post Was Posted On Apr 03, 2010 By Militair #3338
my linux server is running slow more than ever, i like to know which application is hogging all the CPU out of my server. i have LAMP on it for a web server, i suspect that it might be the MySQL database, how can i check?
alfredo
#3703 1
name
top - display linux tasks

synopsis
top -hv | -bchiss -d delay -n iterations -p pid [, pid ...]

the traditional switches â-â and whitespace are optional.

description
the top program provides a dynamic real-time view of a running sys-
tem. it can display system summary information as well as a list of
tasks currently being managed by the linux kernel. the types of
system summary information shown and the types, order and size of
information displayed for tasks are all user configurable and that
configuration can be made persistent across restarts.

the program provides a limited interactive interface for process
manipulation as well as a much more extensive interface for personal
configuration -- encompassing every aspect of its operation. and
while top is referred to throughout this document, you are free to
name the program anything you wish. that new name
Apr 03, 2010 Reply Report abuse
hostman
#3702 2
you the top command

running the top command will display processes ranked by CPU usage

top gives you a dynamic real time report of current running services on your system. it can show system summary infromation and a list of tasks currently being managed by the kernel. use the R option to rost the porcess by cpu like this

#top -R
Apr 03, 2010 Reply Report abuse
©2012 Webune Forums - Thu Dec 13, 2012 10:33 am
Powered by: Webune Forums V3