The only time I've encountered PermGen problems was when iText was
leaking resources in a native library, the zip library IIRC.  I believe
that's the bug fix Bruno is talking about.  And calling gc() won't help
at all.  As I understand it PermGen is space used by the JVM directly...
for things like class files and memory for native libraries.  The JVM
heap/stack are an entirely different section of memory... and that is
was gc() works on.
 
 
--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 


________________________________

        From: Michael E Sweeney [mailto:[email protected]] 
        Sent: Wednesday, December 15, 2010 2:49 PM
        To: [email protected]
        Subject: [iText-questions] MemoryTests.java
        
        
        Bruno -

        I've read "you shouldn't System.gc(). JVM knows better than you
when to gc()".

         

        But I did change my servlet to g2.draw() each BufferedImage
after its made, then re-use the reference (rather than collecting them
in a list).

         

        The PermGen memory leak has me worried though. iText-2.1.5.jar
classes are suspected of holding static references that can't be gc'd.

         

        Appreciate feedback.

        Thanks.

         

        Mike Sweeney 

        USGS Web Developer

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to