D
dhek bhun kho
(e-mail address removed) (Bent C Dalager), Thu, 17 Jul 2003 07:15:14 +0000:
I'm not familiar with JVMPI so I'll just assume they know what they're
talking about <g>
<a href="http://java.sun.com/j2se/1.4.1/docs/guide/jvmpi/jvmpi.html">
It's the java layer of the debugging/profiling interface.</a> I would hope
that such a layer would be reliable to do profiling with. But then again
it's still experimental. I have no clue on the current development status
of the memory profiling code.
Nothing that I can think of.
Does it do this in some mystical magical way or has it just fired up
its own non-daemon thread to keep it all ticking merrily on? If it's
magical, that might affect how things are collected (or not) I
suppose.
Magical? You mean like casting a contingency spell to dimension door
every where with mirror images and stoneskin?
at it, it will still collect in its own good time. I tend to use
OptimizeIt to track down memory leaks and find my efforts constantly
frustrated by the fact that even when I have correctly unregistered
all my listeners, diposed all my windows, etc., it will still take up
to several minutes for the GC to catch on - even after hitting the
"collect" button in the profiler.
Makes profiling hard. Some people ask how they can obfuscate code, I
think the easiest way is to use a lot of indirection and patterns tied
together with a lot of native libraries. It's called Java.
frustrated by the fact that even when I have correctly unregistered
all my listeners, diposed all my windows, etc., it will still take up
to several minutes for the GC to catch on - even after hitting the
"collect" button in the profiler.
Well don't waste too much time on this. It's a very unreal test case, and
not worth the effort as if there is a leak and it's only 240 bytes in a
whole application, then it should be of no problem (as long as the leak is
just an one time happening).
What's even more unreal is that you would write a class where an instance
references itself. Does an object not always have a reference to itself?
Greets
Bhun.