"chris sennitt" <cs******@nospamblueyonder.co.uk> wrote in message
news:5a*****************@news-binary.blueyonder.co.uk...
and re-reading this page it says "There is no way to programmatically
triggor a minor collection".........
so, you can call System.gc() to do a major GC, but again, the article says
you should do this sparingly. if at all.....
For some reason, I am unable to access that page.
Either way, this is VM dependant behaviour, and vendor-defined terminology
(as opposed to "Java" terminology).
Calling System.gc() does NOT perform a garbage collection - it "suggests" to
run the garbage collector (Java 2 API Specification). Overriding (or
attempting to override) the very complex garbage collection algorithms that
a VM performs is generally a bad idea.
--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)