help with Eclipse Memory Analyzer [MAT]
I tried using M开发者_Python百科AT as per this link but dont see (.hprof) file generated anywhere after running the code. I used the -XX:+HeapDumpOnOutOfMemoryError in config arguments as mentioned.
Any specific permissions etc I need to get it working ?
P.S: For context on why I am using the mem analyzer please check the question here:
I had an older version of MAT installed. I installed the newer one and it worked fine in eclipse. thought the older version shld also have worked imo
No special permissions are needed.
I've created a simple class:
public class A {
public static void main(String[] argv) {
String a = "3";
while (true) {
a = a + a;
}
}
}
Then compiled it:
javac A.java
And then ran it:
java -Xmx1m -XX:+HeapDumpOnOutOfMemoryError A
and got the dump file (.hprof).
How does it differ from your procedure?
精彩评论