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

From: Tanel Poder <tanel_at_tanelpoder.com>
Date: Mon, 25 Feb 2013 06:07:13 +0200
Message-ID: <CAMHX9JLXr_1CnqLOc24KEdMo92a1So61ZW_kwhSvR-pMYAVdbQ_at_mail.gmail.com>



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)
> }
>
>
>
-- http://www.freelists.org/webpage/oracle-l
Received on Mon Feb 25 2013 - 05:07:13 CET

Original text of this message