title: Heap Dump Root Classes
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>But it doesn't tell me which class is referencing to this array so that I can fix it in the code.</p>
  
  <p>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.</p>
  
  <p>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.</p>