Sysadmin Notebook
Tuesday, 5 June 2012
Monitor a processes memory and cpu usage over time
To do this I use the following command:
watch -d -n 1 'ps -o "user pid cmd pcpu pmem rss" $(pgrep apache)'
you can replace "apache" with the executable name of the process you want to monitor
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment