Is there any way to FORCE garbage collection? I have put some calls to System.gc() in my code but (as I expected) the system sees the call but keeps chugging (no garbage collection) Any help would be greatly appreciated. Kris
I am not familiar with JProbe. But according to the JVM specs, GC can not be forced, It can only be suggested. You can ask the GC to execute, but it's up to the JVM when, and if at all, the GC runs.
------------------ Bosun SCJP for the Java� 2 Platform
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
Presumably, rather like a debugger, JProbe taps into interfaces (JPDA, JVMPI ...?) that let it do stuff inside the JVM that a normal program cannot. You wouldn't want to have a normal application attempt to use such interfaces.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
What is it that you are actually trying to achieve by running the garbage collector, there is most likely an easier and more reliable way than using the gc. Dave
Originally posted by Kris Decker: Is there any way to FORCE garbage collection? I have put some calls to System.gc() in my code but (as I expected) the system sees the call but keeps chugging (no garbage collection) Any help would be greatly appreciated. Kris
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, that will fit in a stocking