Heap Dump Root Classes

Posted by Adnan Memon on Stack Overflow See other posts from Stack Overflow or by Adnan Memon
Published on 2009-09-08T19:25:36Z Indexed on 2010/03/11 5:48 UTC
Read the original article Hit count: 577

Filed under:
|
|
|
|

We have production system going into infinite loop of full gc and memory drops form 8 gigs to like 1 MB in just 2 minutes.

After taking heap dump it tells me there an is an array of java.lang.Object ([Ljava.lang.Object) with millions of java.lang.String objects having same String taking 99% of heap.

But it doesn't tell me which class is referencing to this array so that I can fix it in the code.

I took the heap dump using jmap tool on JDK 6 and used JProfiler, NetBeans, SAP Memory Analyzer and IBM Memory Analyzer but none of those tell me what is causing this huge array of objects?? ... like what class is referencing to it or contains it.

Do I have to take a different dump with different config in order to get that info? ... Or anything else that can help me find out the culprit class causing this ... it will help a lot.

© Stack Overflow or respective owner

Related posts about jvm

Related posts about gc