WebSphere Issues

01/10/2015

Process, Memory and IO monitoring in Linux

Filed under: Linux — Ishtiaque @ 11:01 am

Process monitoring utilities:

  • ps -ef or ps aux (|grep java)
  • ps -eo ppid,pid,pmem,pcpu,lstart,cmd
  • top
  • netstat -tulpan|grep java (List ports used by a process)
  • netstat -taupe | grep httpd
  • ls -ld /proc/pid  (List date and time when a process was started)
  • pstree -aAp pid or ls -l /proc/pid/task
  • jobs (To find process running in background)

Memory monitoring utilities:

  • cat /proc/meminfo
  • free -m
  • vmstat -s, vmstat -d, vmstat 5 4 -S k
  • pmap pid

IO monitoring utilities:

  • iostat -xk
  • iotop

CPU, Memory, and IO benchmarking utilities:

  • fs_mark -d /tmp -n 1000 -s 10240
  • time sudo bonnie++ -n 0 -u 0 -r 100 -f -b -d /mnt
  • stress -c 8 -i 4 -m 6 -t 30s

 

 

 

 

Advertisements

Create a free website or blog at WordPress.com.

%d bloggers like this: