100% memory usage in prstat


 
Thread Tools Search this Thread
Operating Systems Solaris 100% memory usage in prstat
# 8  
Old 11-04-2009
Quote:
On the other hand, you have allocated 9 GB of memory so there is a RAM shortage in your box.
Thank you jlliagre for reply.
I am bit confused here.
What I guess, swap is used from the disk, so no mattter how big we have it. It's the virtual memory which is simulated from the disk.

PLease correct me if I am wrong, moreover do you think we have to reduce the swap here. Thank you.
# 9  
Old 11-04-2009
Quote:
Originally Posted by Asteroid
What I guess, swap is used from the disk, so no mattter how big we have it.
Indeed, too large a swap is not a problem however your applications are using more memory than what can fit in the RAM. That means they would likely benefit from an increase in RAM size.
Quote:
moreover do you think we have to reduce the swap here.
No, either reduce the RAM usage by your applications if doable or increase the RAM size.
# 10  
Old 11-04-2009
Try
Code:
vmstat 5 5

and have a closer look to "sr" column, if there are for longer time period higher values / for example about 200 / you are facing to memory shortage.
Also have a look at column "id" and "r" where you can discover real CPU utilization.
# 11  
Old 11-04-2009
The sr coulmn seems to hold normal values .

Code:
bash-3.00$ vmstat 5 5 
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m0 m1 m2 m3   in   sy   cs us sy id
 0 0 0 3168312 351264 453 2467 9 11 12 0 5  4  4  4  0 4143 26324 8783 5  8 87
 0 0 0 2480544 304608 451 2507 0 0 0  0  0  0  0  0  0 4050 32797 9758 7  9 84
 0 0 0 2446640 306536 342 2233 0 0 0  0  0 19 18 18  0 3923 24769 7633 5  7 88
 0 0 0 2388648 311328 359 2746 0 2 0  0  0  0  0  0  0 4309 24969 8615 5  9 86
 0 0 0 2488416 315232 325 2091 0 2 2  0  0  0  0  0  0 3882 27707 8424 4  8 88

After 5 minutes I again executed vmstat 5 5

Code:
bash-3.00$ vmstat 5 5 
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m0 m1 m2 m3   in   sy   cs us sy id
 0 0 0 3168192 351256 453 2467 9 11 12 0 5  4  4  4  0 4143 26326 8783 5  8 87
 0 0 0 2511488 337496 522 2940 38 0 0 0  0  1  1  1  0 4050 37562 8630 6  9 86
 2 0 0 2391296 337928 333 2497 0 2 0  0  0  0  0  0  0 4215 24412 8440 4  9 87
 0 0 0 2511944 337712 535 2544 0 2 2  0  0  0  0  0  0 4060 32147 9325 6  9 85
 0 0 0 2514160 338936 326 2293 0 0 0  0  0 19 18 18  0 4068 28599 8713 6  8 85

# 12  
Old 11-04-2009
In the first line, the sr columns is not null so that means you had some RAM shortage in the past. There is no way to tell how important it was from this value as it is an average since last reboot.

There is currently no memory pressure. That means some of the allocated and used memory is not accessed and is just dormant in the swap area.

Last edited by jlliagre; 11-04-2009 at 05:19 PM.. Reason: typo
# 13  
Old 11-05-2009
Thx jlliagre for all the assistance and suggestions.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Capture PRSTAT based on CPU usage percentage

Hi, Recently i have write a simple script to capture CPU high usage based on prstat but i found out that it did capture correctly. I need to capture the rows that contains CPU usage more than 3%. Below line which i thought will capture CPU usage based CPU column in prstat(9th parameter) which is... (3 Replies)
Discussion started by: tharmendran
3 Replies

2. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

3. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

4. Solaris

prstat RSS memory

Hi everyone, was hoping someone might be able to help me understand what I am seeing on one of our solaris systems. prstat -s size -a is showing user oradba as being top virtual memory consumption. 639 oradba 3012G 2951G 100% 59:44:01 25% why is it saying 3012G size and 2951G RSS... (6 Replies)
Discussion started by: k4boy
6 Replies

5. Solaris

Free memory in top and prstat command

Hi Export, i execute 'top' command to show the free memory in Solaris host, but the read is much lower than the RSS value shown in prstat command. Which one can reflect the real status and it is possible the difference caused by any patch of OS? Top command (only 883 memory is free)... (3 Replies)
Discussion started by: eiga
3 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

8. 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

9. UNIX for Dummies Questions & Answers

Usage of prstat -j option.

Hi, I need to capture output of prstat command for certain pid's .I found it as prstat -j filename. I created a filename projlist gave the pid number on the projlist file and run the cmd like this >prstat -j projlist prstat: illegal argument -- projlist can anybody suggest how to... (1 Reply)
Discussion started by: vipin771
1 Replies

10. Solaris

Top and Prstat display different results for memory

I have a question about the accuracy of prstat. I did a 'prstat -t' and it shows 99% of my memory is occupied by oracle. NPROC USERNAME SIZE RSS MEMORY TIME CPU 194 oracle 343G 340G 99% 86:17.24 56% However, 'top' shows I still have 7762meg of memory free. Memory: 16G real, 7762M... (4 Replies)
Discussion started by: zen03
4 Replies
Login or Register to Ask a Question