Eclipse Mat Analysis Heap Dump

Source: Internet
Author: User

Official Reference Document: Http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Ftasks%2Fanalyzingthreads.html code
/** * -XX:+PrintGC -Xloggc:gc.log *  * VM args: -Xms20m -Xmx20m -XX:+HeapDumpOnOutOfMemoryError */public class HeapOOM {static class OOMObject {}   public   Static  void   main   ( string  []   )  throws  interruptedexception  { List<OOMObject> list = new ArrayList<>();while(true){list.add(new OOMObject());//System.out.println("sleep");//Thread.sleep(1000l);} }

The left is the console output, and the right is the heap dump to analyze the thread information.

Figure II

                                                                                     Figure III OQL instancesSELECT s.size, S.modcount from OBJECTS 258211 s Figure IV: Results

Eclipse Mat Analysis Heap Dump

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.