How to free cache memory in Solaris??
My system is having 28 GB of physical memory, but the free memory showing is only 880 Mb. CPU status is showing as 98% idle, but then also the system is running slow. I assume it is most probably because of filled cache memory. Need help to identify n clear cache memory in Solaris 10.
|
What cache are you suspecting is the culprit and why ?
Please post "vmstat 5 5" and "echo ::memstat | mdb -k" output when the problem occurs. Clearing caches is generally worsening performance, not the other way around. |
Hi jlliagre,
Below is the output - Code:
bash-3.00# vmstat 5 5 |
Okay, so you haven't a RAM shortage so no cache memory issue either.
The issue is you are low on virtual memory. Run "prstat -Z" from the global zone, not a non global one like you were here as the failing mdb shows. PS: please use code tags for a better readability of the command output. |
It seems a problem with swap space. In addition to "prstat -Z", post result of following:
Code:
~$ swap -s |
Hi Jlliagre,
Below is the output you mentioned - Code:
bash-3.00# prstat -Z Hi Shiva, Below is the output you mentioned - Code:
bash-3.00# swap -s Thanks guys for looking into my problem and helping me :) |
output of swap -s: you have almost 7 GB swap space and only a half gig is available. Actually it looks like it is not too much...
prstat -Z: oracle uses your memory you can use man prstat or man vmstat about description |
From the outputs you have given and as pan64 pointed out, almost all your swap space is consumed and lots of threads are running for oracle (probably oracle db).
It's clearly a memory issue, as you can see most of the threads are in sleep mode and waiting, and memory is mostly consumed by oracle threads. You can run following commands and check the queue: Code:
~$ sar -q |
@atrivedi.abhay:
1: Please use code tags 2: Please run "prstat -Z" from the global zone. You only have a partial view on what the OS is using. |
Hi Shivaa,
"prstat -as size" shows many oracle processes in sleep mode. I will check that. Thanks :) Hi Jlliagre, "code tags" as in? I don't have the access to global zone, so cant check that. |
And Also, I am not sure, but is there any concept of cache in Solaris?
If yes, then how can we check it and monitor it? |
Quote:
Code:
Here is an example of code tags. Just edit (by clicking the Edit button at the bottom) your previous postings where you posted commands and their output, select them with your mouse and click on the hash (#) button. That will add the code tags I'm talking about around the selected text. Click "Preview Post" to check if the result is correct and click "Submit Reply" if it is. Quote:
The global zone is controlling your zone resources. |
as a minimal solution you can use the command swap and evaluate the output. You cannot handle swap directly, but you can try to kill apps. Probably you only need to add more swap space, or you need to check why do you have so many oracle processes?
|
Hi Jlliagre,
Quote:
@pan64: Quote:
|
Quote:
This was confirmed by your "prstat -Z" output where only your zone named catom-gmcapds51 appears. When on the global zone, "prstat -Z" shows a summary for the global zone which is missing in your case. Again, please edit your previous postings and add the code tags where they should be. And by the way, when quoting other people, use "quote" tags, not "code" ones. |
All times are GMT -5. The time now is 02:15 AM. |