I'm desperate :( cannot track memory leak.
Hello.
Maybe someone can help me on this because I have tried already everything.
Basically we have an application that after running about for 3 weeks it reaches a state of "Out of Memory Error" and stops functioning. I tried to compare dumps of JMAP tracking out every day that passes but didn't see any unusual "leftovers" ....
I'm using Java 6 Update 1 SE on Win 2003 and JConsole constantly to monitor the JVM state.
The java process reaches very high OS memory capture: i.e. in task manager "Mem Usage" = 500,000 and "VM Size" = 700,000 after a week of running.
Java is running with the following parameters: -Xmx1024m -server -XX:+FullSpeedJVMDI -Xrs
Jconsole however shows that the Heap Size = about 40mb and growing but after GCs it goes back to around 40mb ...
Question a: if the heap is only 40mb, why java captures 700mb of memory ?
One more detail, the application is not using any native code only Oracle JDBC connections that are well managed and closed (hopefully :)
I'm desperate I think I have tried it all - using JProfiler and also YourKit and JHAT but nothing :(
If someone might have some idea regarding this it will be mostly appreciated !
Thank you.

