16

This is one Ubuntu 9.10 server.

Also how to see memory usage per process?

Thanks

kapso
  • 1,983
  • 4
  • 14
  • 7

3 Answers3

26

Try this:

ps axo pid,ppid,rss,vsz,nlwp,cmd

Output columns:

  • pid - Process ID
  • ppid - Parent Process ID
  • rss - Resident Set Size - physical memory
  • vsz - Virtual Set Size - virtual memory
  • nlwp - Number of Light Weight Processes - thread count
  • cmd - Command
Dennis Williamson
  • 60,515
  • 14
  • 113
  • 148
1

Use the following to show the memory use of a single process:

pmap -d <PID>
fgysin
  • 448
  • 2
  • 5
  • 15
0

Try this little hamster in Perl for a simple system overview (on Linux):

http://public.m-plify.net/apercu/apercu.pl

Groups processes by name, e.g. all the processes named "httpd" go into one line; or a special process is given its own line.

For each group give:

  • total CPU usage used (percent of single CPU, so the total can be over 100%)
  • total mem usage used (percent)
  • total 'rss', 'size', 'sz', 'vsz' used (from 'ps')
  • total number of processes grouped
  • total number of threads managed by the grouped processes
  • total number of file descriptors used by the processes grouped ("FILES")
  • total number of internet sockets used (that value is already included in "FILES")
  • total number of unix domain sockets used (that value is already included in "FILES")
David Tonhofer
  • 910
  • 1
  • 9
  • 29