Prstat

Hi , I am on solaris 10 sparc64, I need to know how i can check the exact memory utilization by a process/application running on my server..
prstat doesn't give this info , neither it gives the memory/cpu utilization info as we get from Top...
I know my application is always running but still it doesn't show in prstat , and I see most sleep process in prstat by root.
Thanks

To get a detailed/accurate number, including any ISM/DISM segments, use pmap(1M), eg:
$ pmap -x 10301
10301:  -bash
Address  Kbytes     RSS    Anon  Locked Mode   Mapped File
00010000     896     896       -       - r-x---  bash
000F0000      24      24       8       - rwx---  bash
00100000     256     256     192       - rw----    [ heap ]
ED9A0000      64      64       -       - r-x---  methods_unicode.so.3
ED9B0000       8       8       -       - rwx---  methods_unicode.so.3
ED9C0000    6752    6408       -       - r-x---  en_US.UTF-8.so.3
EE068000       8       8       -       - rwx---  en_US.UTF-8.so.3
EE1F0000    1480    1480       -       - r-x---  libc.so.1
EE372000      48      48      16       - rwx---  libc.so.1
EE37E000       8       -       -       - rwx---  libc.so.1
FF2D0000      24      24       -       - r-x---  libgen.so.1
FF2E6000       8       8       -       - rwx---  libgen.so.1
FF2F0000     192     192       -       - r-x---  libcurses.so.1
FF320000      16      16       -       - rwx---  libcurses.so.1
FF324000      16      16       -       - rwx---  libcurses.so.1
FF330000      64      64       -       - rwx---    [ anon ]
FF348000       8       8       -       - rwxs--    [ anon ]
FF350000      24      24       8       - rwx---    [ anon ]
FF360000      16      16       8       - rw----    [ anon ]
FF370000      16      16       8       - rw----    [ anon ]
FF380000       8       8       8       - rw----    [ anon ]
FF390000       8       8       -       - rw----    [ anon ]
FF3A0000     248     248       -       - r-x---  ld.so.1
FF3EE000      16      16      16       - rwx---  ld.so.1
FFBF0000      64      64      64       - rw----    [ stack ]
total Kb   10272    9920     328       -

Similar Messages

  • Using dtrace how can we get the functionality of prstat ,vmstat

    Hi,
    I would like to know what probes can be used to generate a dtrace (.d) script which could produce the output of prstat,vmstat etc.I cannot use these commands at the command prompt directly to know my system's behavior.Can any one here help me out to get this thing realized.I have stiff deadlines to meet .....and i am behind them already...
    Thanking for your support in advance.
    Karthik

    There's probably not an exact equivalent. I'd start with the 'dtrace toolkit' and see if there's something in there that meets your needs.
    But it's not designed to replace tools that already work well. Why would you be able to use dtrace and not vmstat?
    Darren

  • Please assist - strange prstat / unable to kill process (-9)

    Hi Guys,
    I have some questions and I hope someone here will be able to help. Kindly refer to below for my prstat output.
    1. I have this ora10g process taking 8.3 CPU (sftp-server2/1). Just now, our dba attempted to perform a sftp from a remote macine to this machine, however, the process has already been terminated. We tried to perform a kill -9 <pid>, however, the process is still there? Any other way to kill it since rebooting the mission critical server is not an option.
    2. From prstat -a, we can see the total RSS by ora10g is 362G. It won't be possible right as our server has only 32 GB of memory. Anyone can advise? Is it normal?
    prtdiag:
    System Configuration: Sun Microsystems sun4u Sun Fire V890
    System clock frequency: 150 MHz
    Memory size: 32768 Megabytes
    prstat -a:
    PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
    15443 ora10g 3152K 1608K cpu1 0 0 2:12:45 8.3% sftp-server2/1
    20170 nsm 1730M 1445M cpu4 0 0 16:10:22 7.1% oracle/1
    20139 nsm 642M 449M sleep 59 0 2:45:36 3.4% oracle/1
    27064 ora10g 641M 447M sleep 59 0 0:00:17 0.7% oracle/1
    20147 nsm 642M 549M sleep 59 0 1:54:47 0.7% oracle/1
    29529 nsm 2135M 1030M sleep 59 0 0:01:12 0.6% oracle/1
    20175 nsm 642M 449M sleep 59 0 1:34:41 0.4% oracle/1
    20161 nsm 642M 449M sleep 59 0 1:20:21 0.3% oracle/1
    20145 nsm 642M 449M sleep 59 0 1:21:10 0.3% oracle/1
    20150 nsm 642M 449M sleep 59 0 0:50:01 0.2% oracle/1
    10230 oracle9i 2143M 1015M sleep 59 0 3:04:46 0.2% oracle/35
    28159 nsm 642M 453M sleep 59 0 0:01:06 0.2% oracle/1
    20171 nsm 643M 449M sleep 59 0 0:44:10 0.2% oracle/1
    20172 nsm 1730M 981M sleep 59 0 0:46:05 0.2% oracle/1
    20144 nsm 450M 349M sleep 59 0 0:52:51 0.2% oracle/1
    NPROC USERNAME SIZE RSS MEMORY TIME CPU
    56 nsm 26G 18G 3.1% 33:25:26 16%
    513 ora10g 503G 362G 65% 22:26:19 9.6%
    183 oracle9i 373G 180G 32% 4:24:06 2.0%
    87 root 489M 192M 0.0% 2:58:27 0.4%
    7 jgxu 20M 13M 0.0% 0:00:22 0.1%
    Total: 850 processes, 8444 lwps, load averages: 3.35, 2.83, 4.06
    Please advise.
    thanks

    Hi,
    It may b possible coz of some temproray issue or may be dispatcher connection is closed.. first try starting java stack , if it doen't work out try starting dispatcher and the j2ee stack.
    Regards
    Aashish Sinha

  • Prstat output

    Dear all,
    One of my server shows 99% used by Oracle continuously. I just want to know is there any issue related with lack of memory or Issue from Solaris 10 Operating System. Please see the output of prstat -a.
    NPROC USERNAME SIZE RSS MEMORY TIME CPU
    206 oracle 157G 154G 99% 0:05:39 0.3%
    46 root 219M 92M 0.1% 1:21:56 0.1%
    58 application 1020M 689M 0.4% 0:00:15 0.0%
    1 noaccess 225M 110M 0.1% 0:35:31 0.0%
    1 smmsp 7752K 936K 0.0% 0:00:05 0.0%
    Best Regards
    Bikash

    Hi,
    Extremely sorry if I had mentioned something wrong. The truncated output of �prstat �a� is the same what I mentioned above. I just want to know whether there is any issue relater to Operating System or memory if the output seems as below,
    NPROC USERNAME SIZE RSS MEMORY TIME CPU
    206 oracle 157G 154G 99% 0:05:39 0.3%
    46 root 219M 92M 0.1% 1:21:56 0.1%
    58 finadm 1020M 689M 0.4% 0:00:15 0.0%
    1 noaccess 225M 110M 0.1% 0:35:31 0.0%
    1 smmsp 7752K 936K 0.0% 0:00:05 0.0%
    Total: 318 processes, 842 lwps, load averages: 0.16, 0.18, 0.21
    Bikash

  • Prstat output question

    Hi all,
    I have 2 problems I don't manage to explain when running prstat on Solaris 8 :
    1- prstat does not see fsflush process !!!!
    You can even try to force it : prstat -p 3 : it won't work...
    2- prstat -a differs from prstat -aL when you look at TIME (and MEMORY) value for each user
    Does anybody know the reason why ???
    Thanks,
    Jerome

    Thanks for your answer about processes 0, 2 and 3
    I found the answer to my second question : bug 4481976 : prstat without -L reports wrong CPU time for multithreaded processes
    resolved by patch 109033-03....
    Jerome

  • Prstat -J cmd takes more time if there are around 800 processes & 300 user

    Hi experts,
    We used command 'prstat -J -n 1,100 -z global 1 1' to obtain the project statistics.
    One of my customer who have around 800 processes with around 300 users facing problem on his machine whenver the above prstat command executed. As per his comments 'prstat' consuming high CPU and it taking much time to execute.
    He has using machine with following configuraton:
    SunOS <machine name> 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V490
    Is any one has face similar issue? Is it related to any OS patch?
    Let me know any information regarding this.
    Thanks,
    Paresh
    Edited by: test_77 on Jul 15, 2009 5:07 AM

    The folks at NotebookCheck do the kind of benchmarks you reference. You can see their results at:
    http://www.notebookcheck.net/Lenovo-ThinkPad-W550s​-Workstation-Review.137989.0.html
    The tests I ran were just to help me decide which laptop to use since I now have both.
    I do use ATTO as well as CrystalDiskMark for disk/SSD read and write testing. Of course both go off the map when you enable RAPID in the Lenovo with the Samsung 850 Pro installed. RAPID does actually speed up work processing...not just wow the I/O test software.
    I was getting about 550/450 MB/s read/write with both laptops before I enabled RAPID. With RAPID I get 3345 read and 1833 write with the Lenovo.
    Too bad RAPID does not work with all Samsung SSD storage devices.
    W550s: i7-5600U, K620M, 16 GB RAM, 1TB 850 Pro SSD, Win 7 Pro

  • Question of the output of "prstat -a" on solaris 10

    Hi, all
    Recently, I'm debugging a memory issue on the solaris 10 system. I executed the command like "prstat -U root -n 200 -s rss -a" to list all root user memory consumption and sorted by rss. I'm sure that the total number of root process is less than 100. My target is to find which root process takes the memory most. However I'm concerning the output of the above command. The summary on the bottom of the command showed that the total RSS of root was about 4G, the NPROC was about 150. When I did a "sum" of the RSS of all 150 root processes, the value was 1.5G which was far less than the 4G on the bottom summary.
    Does anyone know if my understanding is correct or not? Should they be identical?
    Thanks

    Because of the way Solaris allocates and reports memory usage it is often (very) hard to account for the different values reported by the various commands. Most often the differences involve shared memory.
    Why do you think you have a memory problem?
    Do you think the problem is with virtual or physical memory?
    Have you looked at:
    How to Check and Analyze Solaris Memory Usage [ID 1009500.1]
    GlenG

  • Prstat output in Solaris 11

    Hi all,
    Looking at prstat output in Solaris 11, something has clearly changed from Solaris 10 prstat version, since the results are quite different.
    Looking at an x86 server with S11+SRU7.5, the Oracle instance is eating(RSS) 57GB memory from a machine that only has 14GB memory in total. Is RSS calculated now with used memory+swap? if so, whats the SWAP column for then?
    NPROC USERNAME SWAP RSS MEMORY TIME CPU
    82 root 2755M 2003M 3.3% 4:19:21 0.8%
    46 oracleoc 61G 57G 96% 0:22:08 0.0%
    11 gdm 609M 143M 0.2% 0:02:53 0.0%
    5 daemon 36M 13M 0.0% 0:01:31 0.0%
    RSS
    The resident set size of the process (RSS), in kilobytes
    (K), megabytes (M), or gigabytes (G). The RSS value is
    an estimate provided by proc(4) that might underestimate
    the actual resident set size. Users who want to get more
    accurate usage information for capacity planning should
    use the -x option to pmap(1) instead.

    I hope it's a bug.
    Have you seen bug 7117588. It reads in part:
    "prstat should account for shared pages when counting RSS and swap for zones, projects, tasks, and users. It does not due so after the fix for 6522129."
    I am not sure how to read this statement but I guess it is/was broke.
    GlenG

  • Where is the rest of my memory prstat -aL

    Hi experts,
    I am running out of memory on the system due to paging and, when I run "prstat -aL" the sum of RSS column does not add up. Where is the rest of my memory? Any pointers appreciated. Here is the data
    prstat -aL
    PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/LWPID
    22712 ooracle 49G 5012M sleep 50 0 161:22:33 1.4% oracle/1
    29681 oracle 49G 41G sleep 50 0 0:03:52 1.2% oracle/1
    13729 oracle 49G 41G sleep 59 0 0:04:21 1.2% oracle/1
    21163 oracle 49G 41G cpu525 0 0 0:00:27 0.8% oracle/1
    17744 oracle 49G 41G sleep 0 0 0:05:30 0.8% oracle/1
    11487 oracle 49G 41G cpu8 0 0 0:05:24 0.7% oracle/1
    20847 root 25M 25M cpu513 34 0 0:00:09 0.6% prstat/1
    28068 oracle 49G 18G sleep 50 0 29:28:59 0.6% oracle/1
    24000 oracle 49G 41G sleep 59 0 0:11:24 0.5% oracle/1
    NLWP USERNAME SWAP RSS MEMORY TIME CPU
    17781 oracle 84G 62G 65% 396:49:37 22%
    492 root 548M 238M 0.2% 134:07:08 1.1%
    5 usern 7096K 11M 0.0% 0:37:23 0.1%
    1 userm 1360K 5336K 0.0% 0:00:00 0.0%
    4 userb 3056K 5904K 0.0% 0:00:07 0.0%
    4 userj 4616K 5672K 0.0% 0:00:06 0.0%
    4 usera 3952K 6568K 0.0% 0:00:09 0.0%
    1 smmsp 2584K 4384K 0.0% 0:01:14 0.0%
    19 daemon 11M 6024K 0.0% 0:53:21 0.0%
    Total: 2182 processes, 18311 lwps, load averages: 13.73, 14.41, 16.13
    When I add the RSS column should it total to my physical memory on the system. I have 80GB RAM on the system

    If you have processes that utilize shared memory (like Oracle) the RSS for each process will reflect the shared memory allocation.

  • Running prstat non-interactively

    Hi,
    I'd like to be able to run "prstat" in background from a script and have the output redirected to a file.
    It works fine when attached to the terminal, but I would like to run it from cron or call it from another script. When trying this, prstat starts dumping out the samples as fast as it can -- it ignores the delay parameter (e.g. 20 seconds/sample) I fed it. I think prstat is expecting terminal input and
    is defective at running in this non-interactive mode. Is there any workaround for this problem?
    thanks,
    RichG

    Hi,
    This appears to be a known bug (id # 4529138). This is fixes in Solaris 9.
    The workaround is to use the same command as a non-root user.
    HTH.
    Gopinath.
    Sun Developer Technical Support.
    http://www.sun.com/developers/support

  • Solaris server hung when executes prstat or ps command

    Hi all,
    When we are executing prstat or pr command, the global zone and non global zone images are hungs.
    kindly give some suggesstions to resolve

    I've noticed huge latency while running prstat, ps type commands on certain systems running java-based applications.
    This could be due to lock mgmt issues:
    [http://prstat.blogspot.com/2008/03/stuck-ps1-thanks-mdb1.html|http://prstat.blogspot.com/2008/03/stuck-ps1-thanks-mdb1.html]
    I would recommend you open a case with sun to find out more.

  • Does 'prstat -J -n 1,100 -z global 1 1' command causes high CPU utlization?

    Hi experts,
    We used command 'prstat -J -n 1,100 -z global 1 1' to obtain the project statistics.
    One of my customer who have around 800 processes with around 300 users facing problem on his machine whenver the above prstat command executed. As per his comments 'prstat' consuming high CPU.
    He has using machine with following configuraton:
    SunOS <machine name> 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V490
    Is any one has face similar issue? Is it related to any OS patch?
    Let me know any information regarding this.
    Thanks,
    Paresh

    Hi Paresh,
    I would like to tell you why don't you bind the particular process using solaris resource manager.

  • Why the "prstat -a" showed "incorrect" rss result?

    Hi, folks
    I was a little bit confused recently when I was investigating a memory issue as per the data collected by "prstat".
    The output of the prstat looked like,
    27465 nicgrp01  258M  175M cpu15   10    0 535:30:36 3.1% bsmciapp/9
      7211 nicgrp01  258M  206M cpu9    10    0  14:20:25 3.1% bsmciapp/9
    29482 nicgrp01  258M  197M cpu3    10    0 225:08:29 3.1% bsmciapp/9
    but the summary looked like,
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU                            
        27 nicgrp01  204M  427M  2.6% 775:10:35 9.4%
    Obviously, the sum of rss of the username "nicgrp01" won't be 427M only...(note, we have total 27 processes of user nicgrp01, the top 3 of them have been using more than 427M rss already...)
    As I know that the final result of the "prstat -a" will show the sum of CPU, Memory of the top N users (+# of processes of that user).
    In which scenario, the sum will display the rss usage like above?
    Appreciated if anyone can shed me a light here.
    Thanks.

    looks that they are sharing some memories.

  • Ps and prstat showing UIDs not usernames

    Hey folks,
    I have setup central authentication on 12 Solaris 9 machines using LDAP. The /etc/pam.conf and /etc/nsswitch.conf have been set to use LDAP.
    Everything is working fine (users can login, finger, id, ssh, etc), except that on one of the machines, ps and prstat shows the UID number of the user, not the user's name. This only happens for non-root users. For root, ps and prstat show the usernames. For non-root users, the following errors are logged in /var/adm/messages when ps -ef is run:
    Mar 1 10:48:33 sun-1 ps[5172]: [ID 293258 user.error] libsldap: Status: 91 Mesg: openConnection: failed to initialize TLS security (security library: bad database.)
    Mar 1 10:48:33 sun-1 last message repeated 1 time
    Mar 1 10:48:33 sun-1 ps[5172]: [ID 293258 user.error] libsldap: Status: 7 Mesg: Session error no available conn.
    Mar 1 10:48:33 sun-1 ps[5172]: [ID 293258 user.error] libsldap: Status: 91 Mesg: openConnection: failed to initialize TLS security (security library: bad database.)
    This is the output of ps -ef:
    0002004  5151  5149  0 10:38:34 pts/2    0:00 -bash
        root  5158  5151  0 10:38:41 pts/2    0:00 bash
        root  5123   577  0 08:59:54 ?        0:00 /usr/lib/ssh/sshd
    0002019  5172  5167  0 10:48:33 pts/3    0:00 ps -ef
    0002019  5125  5123  0 08:59:58 pts/1    0:00 bashHere, 2019 and 2004 are LDAP users' UIDs. root is a local account.
    I have applied patch 112960-34 to fix some other ldap issues I was having. My other machines are not having this issue, but they also have different patch levels.
    Has anyone else run into this and fixed it?
    Any ideas would be appreciated.
    Thanks,
    Konstantin

    It turns out that /var/run/name_service_door had insufficient permissions. It should be 444:
    Dr--r--r--   1 root     root           0 Feb 24 17:37 name_service_doorTo permanently change this, change CMASK value in /etc/default/init to something like 022.

  • Prstat gets cut off

    When I run the command prstat -u user 1 1 I get about 100 lines of output. Which is fine. But if I pipe or redirect the command it only comes back with about 15 lines. prstat -u user 1 1 |more still cuts it down. So trying to use prstat in a script, like uprstat found elsewere, gives inaccurate information. Any ideas?

    From the man page:
    -n ntop[,nbottom]
    ...When you specify the -c
    option or direct the output to a file, the default
    values for ntop and nbottom are 15 and 5.
    'prstat -n 99999' fixes this

Maybe you are looking for

  • How to get binding variables from request

    We are trying to use html-db to develop an application which need to get values from user request to use in the queries, i.e. we will have pages depend on several binding variables and the value of these variables will be provided by the user through

  • [JS CS3] Show Text Threads

    Does anyone know the syntax to script the View > Show Text Threads command in CS3? It seems that it should be something like: app.activeDocument.viewPreferences.showTextThreads ...but that isn't in the DOM. I can't seem to locate it. Can this be done

  • OutOfMemory issue with Axis 1.3 and Weblogic 10.3.6

    Hi All, We are facing OutofMemory issue (permGen memory) when we do hot deployment of a web application to Weblogic 10.3.6. We have hosted some webservices in this application using Axis 1.3. When i remove Axis configuration from application the issu

  • E Rec integration issue while data transfer

    Hi Experts, In E Recruitment we are facing an issue that when education is getting transferred from E Rec to PA then education is not getting transferred correctly. The issue is because in E Rec we are using table T77RCF_DEGREE & in PA we are using T

  • "Save for Web" feature suddenly grayed out

    I have a Mac Notebook. I have Adobe Photoshop Elements 4.0 installed (I know it's outdated but it meets my simple needs). I use Photoshop Elements mostly to save photos for my blog. I use the "save for web" feature everytime. However, when I tried us