0 Replies Latest reply on Sep 26, 2014 12:12 AM by Phamorn Hongsawat

    How to find class of OOM in JBOSS.hprof using Eclipse MAT?

    Phamorn Hongsawat Newbie

      I have a heapdump file created from JBOSS when it's OOM.


      I tried to find the cause of problem by using Leak Suspects Report feature in Eclipse MAT,


      but what I saw from the result is not make me understand about the real cause of OOM.


      I wonder if I can point to root of problem, which class is the memory eater.


      For example, if I have a code like below

           from http://www.vogella.com/tutorials/EclipseMemoryAnalyzer/article.html

                     package com.vogella.mat.first;

                     import java.util.List;

                     public class Main {

                            public static void main(String[] args) {

                                 List<String> list = new ArrayList<String>();

                                  while (1<2){

                                      list.add("OutOfMemoryError soon");




      Can Eclipse MAT tell me the cause of OOM is came from class Main, or if I create another class and create many objects that retain memory untill OOM?