Posted by: Anil | February 5, 2008

How to check memory usage on Solaris 10 zone

root@vds5:/# prstat -s rss -Z
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
  9584 root      435M  329M sleep    1    0   0:46:36 0.0% java/58
 24009 clamav     39M   37M sleep    1    0   0:00:02 0.0% clamd/1
 27463 mysql      46M   26M sleep   59    0   0:27:30 0.0% mysqld/13
 20366 root       27M   23M sleep    1    0   0:01:53 0.0% spamd/1
 20369 spamd      28M   21M sleep    1    0   0:00:01 0.0% spamd/1
 16949 root       24M   20M sleep   59    0   0:00:03 0.0% paster/6
 16728 root       24M   19M sleep   39    0   0:00:04 0.0% paster/7
 24014 clamav     39M   16M sleep    5    0   0:00:22 0.0% clamav-milter/3
 27930 webservd   22M   11M sleep   59    0   0:00:07 0.0% php-cgi/1
 27928 webservd   21M 9092K sleep   59    0   0:00:00 0.0% php-cgi/1
 22888 root       10M 8684K sleep   29    0   0:00:22 0.0% svc.startd/13
 22890 root       10M 8684K sleep   43    0   0:00:38 0.0% svc.configd/13
 27927 webservd   18M 5368K sleep   38    0   0:00:00 0.0% php-cgi/1
 27929 webservd   18M 5368K sleep   38    0   0:00:00 0.0% php-cgi/1
 27925 webservd   18M 5368K sleep   38    0   0:00:00 0.0% php-cgi/1
ZONEID    NPROC  SWAP   RSS MEMORY      TIME  CPU ZONE
    31       53  661M  577M   7.2%   1:22:36 0.0% vds5

Look at the RSS memory column in the last couple of lines. This Solaris 10 zone from Entic.net is using about 577MB of RAM.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: