Find memory usage for a process


 
Thread Tools Search this Thread
Operating Systems Solaris Find memory usage for a process
# 8  
Old 08-11-2017
Notice that Oracle relies heavily on shared memory: in addition to listing all the processes for the database you need to issue a ipcs -m th display the shared memory segments and analyse what you get there.

I am no Oracle expert but i recall vaguely that any Oracle instance will allocate only a certain amount of memory for all its processes and this value is configurable. I am not sure, anyhow, if this value is the SGA, the PGA or whatever - check this with the DBAs, they should know. It might be easier to do this than to list and add and analyse some OS-output.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 9  
Old 08-11-2017
Running ipcs -m gave me
Code:
oraent@DBSRV1 $
oraent@DBSRV1 $ ipcs -m
IPC status from <running system> as of Friday, August 11, 2017 03:07:22 PM IST
T         ID      KEY        MODE        OWNER    GROUP
Shared Memory:
m         15   0x3f81fc70 --rw-r-----   oraent oinstall
m         14   0x0        --rw-r-----   oraent oinstall
m         13   0x0        --rw-r-----   oraent oinstall
m          7   0xeb0a8b74 --rw-r-----   oraent oinstall
m          6   0x0        --rw-r-----   oraent oinstall
m          5   0x0        --rw-r-----   oraent oinstall
m          3   0xf6b11ac0 --rw-r-----   oraent oinstall
m          2   0x0        --rw-r-----   oraent oinstall
m          1   0x0        --rw-r-----   oraent oinstall
You have new mail in /var/mail/oraent
oraent@DBSRV1 $
oraent@DBSRV1 $

The oracle database allocates memory equivalent to the SGA parameter.
Thsi is needed to only start the database and to keep it running.
But as new user connect to the database and perform theis tasks. Each user has its own process on the server. This process consumes memory.

So, such connections per database differs.
In my case i have three database opn the server.
Out of the three, one database consumes apporx 80% of the CPU and memory. This is just an estimate depending on the number of connections see at the database level.
Thats why i need to find the memory usage per database.
# 10  
Old 08-11-2017
What Bakunin is politely telling you -

Depending on the oracle version and what the db is configured to do, there are oracle configuration files and tables. You as root cannot easily get into each instance and see what is going on. You pretty much have to know how the db was set up beforehand.

Go ask your DBA's what they have done for each database. Unless you want to spend two days wading knee deep through a wall of oracle documentation. And your interpretation of the "80%" thing probably is wrong, IMO (see last line)

Why? Because it all depends on whether sqlplus is running on the Solaris box itself for each user process, which it may look like to you, but whether the user's desktop or an application server is involved.

FWIW your pmon output ( I did not count) shows six(?) databases - anyway way more than three instances. You've got problems beyond what you are aware of, IMO.

Last edited by jim mcnamara; 08-11-2017 at 09:13 AM..
# 11  
Old 08-11-2017
The pmon was from another server, hence the 6 databases.

The connections are not from the server. They arw coming from various sources. Some from Windows machine some from inhouse application server and some web based application. Few from the developer also.
Only the jobs which are scheduled as crontab make connection to the database. And these jobs are scheduled at night..
# 12  
Old 08-11-2017
Look, you can dispute what you want. You seem to want to diagnose this on a per process basis. Okay, then the use ps command and netstat to show who comes from what source.

The base point: if you do not have the full picture you will very likely incorrectly diagnose problems. For example are there lots of TIMED_WAIT in netstat? - I had that cause the problem you see. The windows boxes mostly and other servers had issues, but the oracle system showed the symptoms - lots of cpu, poor performance.

Do what you want. You have your mind set on per process analysis, so go for it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How can I check actual memory usage each Process?

I can't check actual memory usage in the Redhat 5.5... The used memory is 14214 Mb of Total 15919 by Free -m command. I sum the RSS value on PS aux command result and the value is 5428.66Mb. Yes It's quite different actual usage memory and RSS value. So I added Shared memory value... (5 Replies)
Discussion started by: tom8254
5 Replies

2. Solaris

Process memory usage

hi all gurus: 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... (5 Replies)
Discussion started by: oakville
5 Replies

3. HP-UX

Virtual Memory Usage a Process

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)
Discussion started by: ard
4 Replies

4. UNIX for Advanced & Expert Users

collecting memory usage by a process

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)
Discussion started by: arizah
2 Replies

5. UNIX for Advanced & Expert Users

How to find out memory & cpu usage of a process

Hi, By using time command we can determine the execution time of a process or command. bash-2.04$ time ls -l total 0 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file1 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file2 real 0m0.002s user 0m0.000s sys 0m0.001s... (5 Replies)
Discussion started by: learn more
5 Replies

6. HP-UX

how could I get a process Memory Usage

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)
Discussion started by: alert0919
3 Replies

7. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

8. Shell Programming and Scripting

Memory usage of a process

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)
Discussion started by: tafil
7 Replies

9. Solaris

RAM Physical Memory usage by each Process.

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)
Discussion started by: bsrajirs
12 Replies

10. UNIX for Advanced & Expert Users

how to restrict memory usage by a process

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)
Discussion started by: frankkahle
4 Replies
Login or Register to Ask a Question