Re: Memory leak detection and JVMTI

2010-04-26 Thread Rainer Jung
On 25.04.2010 23:18, Sylvain Laurent wrote: I don't understand what would be the purpose of this feature. Is it in order to really force a GC when clicking on the "Find leaks" button of the manager ? Yes If it's for that, I don't think it's worth the trouble. People really interested in fixin

Re: Memory leak detection and JVMTI

2010-04-25 Thread Sylvain Laurent
I don't understand what would be the purpose of this feature. Is it in order to really force a GC when clicking on the "Find leaks" button of the manager ? If it's for that, I don't think it's worth the trouble. People really interested in fixing their leaking webapps should take a snapshot of t

Memory leak detection and JVMTI

2010-04-22 Thread Rainer Jung
Just a short note: I stumbled over the "ForceGarbageCollection" JVMTI function today. It reliably triggers a full GC and the call only returns after having run the GC. It will do so, even when System.gc() is disabled. It looks like it doesn't respect ExplicitGCInvokesConcurrent, so it will alwa