I want to find out Solaris process memory usage, but got a bit confused, see if any one can provide me some guidance.
i tend to use prstat -a to get total memory consumption by user (I know prstat likely have a bug that simply sum up the memory, regardless if the memory being shared memory). Based on this command this hvr have a rss size of 121G .
then goes to ps, only two processes under hvr, with rss of 588400 + 41212 bytes, this appears varied a lot with above prstat output
goes to prstat -t, the project 881829 and 881829 under hvr have rss of 4594M + 4296M
goes to prstat -J, then the project 881829 and 881829 under hvr have rss of 60G + 61G, which tend to match with prstat -a
i am very confused, how to accurately find out how much memory process consume in solaris? thanks
Last edited by Don Cragun; 02-13-2016 at 08:48 PM..
Reason: Add CODE AND ICODE tags.
Outside the possible shared segment issue with prstat aggregations, all the commands accurately report how much memory is consumed. The main difference lies with the set of processes that are selected, six with "prstat -a", two with "ps", two different ones with "prstat -T".
You should first define the set of processes you want to measure the memory usage.
Then, a first approximation would be to sum up their RSS and SIZE columns as reported by the ps command. Should you suspect the value is over the actual usage, you can dig up each process memory usage with "pmap -x" and identify which segments are shared and their size.
These 2 Users Gave Thanks to jlliagre For This Post:
if i do a --> prstat -a -u to focus only the processof hvr, following is the output, RSS at top portion and bottom portion just do not close at all. top and bottom portion both showed 2 process (nproc)
What Solaris release is this?
Are zones involved?
Why was there six processes belonging to hvr in the "prstat -a" first posting output and only two in the last one?
What is the output of "prstat -s rss -c 1 1"?
I have multiple oracle databases on one server. All the database are running from the same user i.e. oraent.
The process for each database can be distinguished by the ps -ef command
Eg : ps -ef | grep oraentThe Output :
oraent 5361 1 0 20:58:05 ? 0:00 oracledb1... (11 Replies)
Hi all,
Is there any command which shows the virtual memory usage of a particular process in HP-UX machine.
I have tried with ps, top but could not get what I want.
Kindly provide me a solution.
Thanks in Advance
ARD (4 Replies)
Hi Guys,
I work on a AIX environment and I'm trying to write a script where I can collect all the memory used by a process. Basically I'm executing the command 'ps -fu userid' to get all the process ids and then executing the 'ps v PID' to get all the memory allocated by PPID. My question is... (2 Replies)
Hi,
I have the following two processes that's built with static libraries. Both the process have many common libraries.
-rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1
-rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2.
I built these two server processes making all the... (1 Reply)
Hi,
I have the following two processes that's built with static libraries. Both the process have many common libraries.
-rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1
-rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2.
I built these two server processes making all the... (1 Reply)
I don't know when the process will start and end, I need write a script to trace it's cpu/memory usage when it is runing. How to write this script? (2 Replies)
I use pstat API to get Process Infomation
I would like to get a process
1.process owner
2.how many physical memory and virtual memory and total memory used(KB) and usage(%)
3.a process excution file create time
4.a process excution file access time
I do't know which attribute it i need
... (3 Replies)
hi all,
i want to write a script that checks the memory usage of processes and send a mail with the name of the process witch is using more then 300mb RAM.
dose anybody have a sample script or an idea how i can make it ?
PROCCESSES="snmpd sendmail"
for myVar in $PROCCESSES
do
... (7 Replies)
Hi All,
I am trying to find the physical memory usage by each process/users.
Can you please let me know how to get the memory usage?.
Thanks,
bsraj. (12 Replies)
we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB.
Thanks,
Frank (4 Replies)