I checked the code, and we do not explicitly call reader.close().  I'll 
make the change.  Thanks.

BTW, after updating the code, is there an easy way to monitor the JVM on 
Linux to make sure the file handles are being closed properly?  I would 
like to avoid a repeat of Tomcat crashing if possible.


From:   1T3XT BVBA <i...@1t3xt.info>
To:     Post all your questions about iText here 
<itext-questions@lists.sourceforge.net>, 
Date:   04/23/2013 02:13 AM
Subject:        Re: [iText-questions] "Too many open files" error running 
iText 5.4.1 on Linux



On 23/04/2013 0:39, tacal...@insb.uscourts.gov wrote:
Over the weekend, I swapped out the itextpdf-5.3.5.jar with 
itextpdf-5.4.1.jar.  The application ran fine for a little while before 
generating an error in catalina.out as shown below.  I restarted Tomcat, 
and it worked for a little bit and failed with the same error.  After 
putting back itextpdf-5.3.5.jar, all is working again.  At this point, I 
think we will stay with 5.3.5, but I wanted to make someone aware of the 
problem. 

Since 5.4.0, PdfReader is no longer closing files implicitly as this 
causes problems in some use cases.
Therefore, people switching to iText 5.4.x should call reader.close(); 
whenever they've finished using a reader instance.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
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