I have a j2ee application and monitoring it by visualVM.
Lets say that I have a method like this:
public void doStuff(int param) {
String s = getStringVariable(param);
StringBuilder sb = new StringBuilder();
//Do stuff with sb object
}
From the thread tap, I can see that some of my threads stuck in the above method. So I have generated a heap dump file to figure out what is s and sb contains.
But how can I do that? I am using Eclipse Memory Analyzer.