James D
2008-05-25 21:54:36 UTC
When I run the application normally and hammer it with requests, it quickly baloons to fill 600mb of RAM, at which point the JVM seems to hang.
However when I run a profiler (Yourkit Java Profiler) against it, the memory usage sits at a constant 81mb RAM and doesn't go any higher no matter how many requests it processes.
It appears that running a memory profiler against my application fixes the memory leak, making it rather difficult to pinpoint.
There doesn't appear to be any differences in command line arguments between running tomcat normally and with the profiler, and in both cases I'm running the same JDK (1.6.0_03)
Anyone have any ideas?