> ari@linux:etc:554$ ps auxwww | head -1; ps auxwww | grep java
> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
> ari       1862 63.4  4.0 21896  2544  p1 R    18:09   0:38 ...java foo
> ari       1915 49.4  4.0 21896  2544  p1 R    18:09   0:20 ...java foo
> httpd     1698  0.6  5.4 22648  3432  ?  S    18:08   0:00 ...jserv...
>
> where foo is the phenomenally exciting inifinite loop program. Anyone with
> more Linux experience want to tell me how to find out how much memory the
> thing is really gobbling up?

I _believe_ that the RSS column is what you want to be looking at for the
actual amount of memory that the application is taking up. From the Solaris
man page for ps...

     -y        Under a long listing (-l), omit the obsolete F and
               ADDR  columns  and include an RSS column to report
               the resident set size of the process. Under the -y
               option,  both  RSS  and  SZ  (see  below)  will be
               reported in units of kilobytes instead of pages.

(...)

     SZ   (l)  The total size of the process in  virtual  memory,
               including  all mapped files and devices, in pages.
               See pagesize(1).

I assume SIZE is == to SZ.

If you use top...I think it is the "RES" column that you should look at...

  PID USERNAME THR PRI NICE  SIZE   RES STATE   TIME    CPU COMMAND

Correct me if I'm wrong as I'm no expert on Unix memory management.

-jon


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to