Re: kernel memory keeps increasing and running out of memory (Sun T4, Solaris 10)

From: Eagle Fan <eagle.f_at_gmail.com>
Date: Tue, 26 Feb 2013 10:25:08 +0800
Message-ID: <CANHUaOpsMCKR55w+5Wr_TagvO6ns2DTEjj58Vm73TPdMDxD_tA_at_mail.gmail.com>



Thank you very much Tanel.
I don't have privileges to run dtrace on the servers, I will have SA to run it. Upgrade to latest version is a good suggestion:)

On Mon, Feb 25, 2013 at 12:07 PM, Tanel Poder <tanel_at_tanelpoder.com> wrote:

> Long story short - memory leaks are hard to diagnose, but at least you
> have dtrace. Nevertheless, it might be just easier to patch the OS to the
> latest version first and hope the problem goes away.
>
> --
> *Tanel Poder*
> Enkitec (The Exadata Experts)
> Training <http://blog.tanelpoder.com/seminar/> | Troubleshooting<http://blog.tanelpoder.com/>
> | Exadata<http://www.amazon.com/Expert-Oracle-Exadata-Apress/dp/1430233923>
> | Voicee App <http://voic.ee/>
>
>
>
> On Mon, Feb 25, 2013 at 6:05 AM, Tanel Poder <tanel_at_tanelpoder.com> wrote:
>
>> As your memory allocation seems to be increasing, then taking strack
>> traces when kmem_alloc function is called would help to pinpoint who & when
>> is allocating the memory.
>>
>> For example, something like this (although you may want to modify it to
>> kick in for any process):
>>
>> #!/usr/sbin/dtrace -qs
>>
>> #pragma D option quiet
>>
>> fbt::kmem_*alloc:entry,
>> fbt::bkmem_alloc:entry
>> /execname == "oracle" && curpsinfo->pr_psargs == "oracleSOL102
>> (LOCAL=NO)" /
>> {
>> _at_kmem[probefunc,stack()] = sum(arg0)
>> }
>>
>>
>>

-- 
Eagle Fan (www.dbafan.com)


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Feb 26 2013 - 03:25:08 CET

Original text of this message