If you can afford the gc time consumption then there is a sure way of garbage collection. This method will ensure that garbage is collected for sure...Use the "Sizeof" class as given in the java world article below. This is a sure way of garbage collection, but then it slows down the system !
http://www.javaworld.com/javaworld/javatips/jw-javatip130.html -----Original Message----- From: Dennis Myr�n [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:12 PM To: [EMAIL PROTECTED] Subject: RE: Memory consumption I am not an expert in java memory handling either, But I suggest you release all handles after each run in the loop, And then perform a garbage collect. Regards, dennis.myren -----Original Message----- From: Timo Haberkern [mailto:[EMAIL PROTECTED] Sent: 16. september 2003 15:38 To: [EMAIL PROTECTED] ><snip/> > >I'm not really the expert on JVM Memory Management, but AFAICT these >declarations belong outside the 'for'-loop. (Not sure whether this is >causing memory problems, but it just seems ... more elegant. If they >really do not depend on the variables changing in the loop, that is... >If behaviour would be what I'm guessing, then these would consume >memory - the total of which would only be released on completion of the >loop...) > ><snip/> > No :-( That doesn't help anything... Any other ideas? >> driver = null; >> >> > >You won't be needing this. Just resetting the Driver should be ok. > > mhmm, that was i try! I thought that it maybe helps a little bit but it doesn't. But it remains anyhow... >I also notice you have read this (?) >http://xml.apache.org/fop/running.html#memory > >Have you tried the multiple page-sequences tip? > Every PDF File is only 2 pages long. And the memory is consumed for PDFs with big images... My problem is that i can't get down the memory after rendering one PDF and before the next rendering... regds Timo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
