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.
Running ipcs -m gave me
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.
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 10:13 AM..
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..
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.
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)
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)
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,
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)
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)
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)
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)