Sometimes I am getting OutOfMemory error when running my projects for multiple users.I am using jdk 1.6,netbeans 6.0. Can anyone suggest how to find out the memory leaks or to overcome this error. As I am using jdk 1.6, it takes the size of the heap automatically according to the operating System.
You could use a code profiler, but so far it sounds like it'd be easier to just look at the stack trace to see when the OOM occurs--without any further information it sounds like you're just doing something that's eating all the memory.
Abhi Singh
Greenhorn
Joined: Feb 02, 2010
Posts: 13
posted
0
Thank you David for your suggestion. I have used profiler to get those results but I am not getting the actual point where the leakage occurs. Still i will try. Anyways thanks for your suggestion
walter wang
Ranch Hand
Joined: Jun 02, 2001
Posts: 144
posted
0
using PrintClassHistogram as VM parameter, and dumping several memory snapshots at different time to GC.log file,
By analyzing incensement of number and size of objects, you could find the root cause.
public class Walter{
public boolean is_Working_Now(boolean is_boss_Coming){
return is_boss_Coming;
}