User memory utilization


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers User memory utilization
# 1  
Old 07-30-2014
User memory utilization

Hi,

I am a newbie and would like help to determine the total memory usage by a user eg oracle in Solaris 10 machine.
The user has been assigned a total memory of 20gb .But there are a number of processes under that user.

I would like to know the total memory being utilized from all the processes under oracle at a given time ,out of the total 20gb memory assigned

Thanks
# 2  
Old 07-30-2014
prstat -a
This User Gave Thanks to achenle For This Post:
# 3  
Old 07-31-2014
You could also have a look at the output for:-
Code:
ps -lu username

Look at the SZ column.



Robin
# 4  
Old 07-31-2014
Below a nagios plugin:
Code:
#!/bin/sh
#
# Warn if a user consumes too much memory (RSS)
# ARG 1: limit (MB)
#

set -f
export PATH
PATH=/bin:/usr/bin:/usr/sbin:/sbin

limit=${1:-5700}
check=`ps -e -o uid= -o rss= | awk '
BEGIN {limit='$limit'*1024}
{m[$1]+=$2}
END {for (i in m) if (m[i]>max) {max=m[i]; uid=i} if (max>limit) print "uid="uid,"max="int(max/1024)}
'`
if [ -z "$check" ]
then
  echo "OK: all users below $limit MB resident memory"
  exit 0
else
  eval $check
  user=`getent passwd $uid | cut -f1 -d:`
  echo "WARNING: user $user ($uid) uses $max MB resident memory"
  exit 1
fi

This User Gave Thanks to MadeInGermany For This Post:
# 5  
Old 08-01-2014
Hi,

Correct me if I am wrong the SZ column indicates the swap space and not the shared memory utilization by the user .Thanks in advance

---------- Post updated at 08:26 AM ---------- Previous update was at 08:26 AM ----------
# 6  
Old 08-01-2014
Code:
$ man ps

...
       sz          SZ        size in physical pages of the core image of the
                             process.  This includes text, data, and stack
                             space.  Device mappings are currently excluded;
                             this is subject to change.  See vsz and rss.
...

This User Gave Thanks to Corona688 For This Post:
# 7  
Old 08-01-2014
Hi

Man ps gives
Quote:
SZ The total size of the process in virtual
memory, including all mapped files and dev-
ices, in pages. See pagesize(1).
and I tried doing ps -lu <user> -o user,rss

Please correct me that a sum total of rss will give me the total memory instead of SZ.

Thanks

Last edited by rbatte1; 08-04-2014 at 06:17 AM.. Reason: Added QUOTE & ICODE tags
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need help on memory utilization.

I have run the utility nmon in aix 6.1, and found memory utilization is 99.9% in physical. and pressed h key and then t , in that it is not showing single process which is consuming memory resources. please help me how to find out actual memory utilization. wheather 99% is real memory... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

2. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies

3. SuSE

Memory utilization issue

I have parallels container running on Suse. From top command, I am not able to see, what is eating up so big amount of memory. top - 07:44:24 up 172 days, 18:52, 1 user, load average: 0.01, 0.02, 0.00 Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, ... (1 Reply)
Discussion started by: solaris_1977
1 Replies

4. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

5. Solaris

i have conflict with memory utilization

dear all, kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain i have a server which has 32GB RAM Total Memory = 33423360 kb Free Memory = 4172568 kb Utilized Memory = 29250792 kb Memory Utilization... (2 Replies)
Discussion started by: maxim42
2 Replies

6. HP-UX

memory utilization

command for checking memory utilization in HP -UX (2 Replies)
Discussion started by: tushar_spatil
2 Replies

7. AIX

Memory Utilization

Hi friends i have a query. we have two p-series machine(p550 & p570) with HACMP 5.3 and AIX 5.3 hosting SAP. Now i need to now is there a way or a command to check the memory utilization on these machines on daily basis. I have tried vmstat and iostat but still it's not clear. We have... (3 Replies)
Discussion started by: nathandrake13
3 Replies

8. Shell Programming and Scripting

Memory Utilization

Hi, Is it possible to obtain physical memory and swap memory available in HP-UX server. I tried using "top" command but i'm not able to grep the memory part exclusively... Thanks.... (4 Replies)
Discussion started by: EmbedUX
4 Replies

9. UNIX for Dummies Questions & Answers

Memory utilization question

Hi All I have a clarification. I am running a database on CentOS 4.5 final, PostgreSQL version 8.1.9. The question is about memory usage on the system. The memory used statistic has risen consistently over the past few days... by about 2-3% a day. I want to know why this memory is growing.... (1 Reply)
Discussion started by: skotapal
1 Replies

10. AIX

Memory Utilization

All, The (fre) coloumn of the (vmstat) command, does it report the size of the free list including the swap space or it only report on the RAM (physical memory). BR, (1 Reply)
Discussion started by: Negm
1 Replies
Login or Register to Ask a Question