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.ArrayList;
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?
Regards,
Phamornh