JVM OutofMemory
Hello Everyone,
I am new to this forum. I know there is lot around regarding OutofMemoryException but I wanted to start this new thread. I am a newbie to Java and need help.
My application runs of of Memory at times. I have not been able to see a fixed pattern sometimes its gradual in 1-2 hours sometimes its a sudden drop to 0. These are data from the application log. I am not sure what really is going on in the JVM. I need to know:
1. How can I identify if there is a problem in the application which so what exactly.
2. If not application is the GC not working well and how can I optimize it.
3. If anything else, what can I do to isolate the issue.
[693 byte] By [
RPSBillya] at [2007-11-26 14:10:28]

# 1
> Hello Everyone,
>
> I am new to this forum. I know there is lot around
> regarding OutofMemoryException but I wanted to start
> this new thread. I am a newbie to Java and need help.
>
>
> My application runs of of Memory at times. I have not
> been able to see a fixed pattern sometimes its
> gradual in 1-2 hours sometimes its a sudden drop to
> 0. These are data from the application log. I am not
> sure what really is going on in the JVM. I need to
> know:
> 1. How can I identify if there is a problem in the
> application which so what exactly.
Search the net for :java profiler. NetBeans and Eclipse both have one, as well.
> 2. If not application is the GC not working well and
> how can I optimize it.
Read this, for a start:
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
> 3. If anything else, what can I do to isolate the
> issue.
Gradually strip out parts of the code and see if the problem disappears.