Thanks!
This works great.
Should I use different ways for different file sizes?
What is recommended?
You really saved me here, thanks again.
Yotam
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Out-of-memory-problem-tp4657110p4657123.html
Sent from the iText - Gen
Hi all,
I'm getting OutOfMemoryError while trying to deal with existing PDFs.
The Error happens only for files larger then 3M (+-). Code is working fine
for files smaller than that.
Exception in thread "AgentThread: JavaAgent" java.lang.OutOfMemoryError
at com.itextpdf.text.pdf.IntHashtable.rehash
-Xmx64m works for me. Are you using the latest iText release?
Paulo
- Original Message -
From: "Tony He" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2006 5:45 PM
Subject: Re: [iText-questions] out of memory problem with PdfReader
Hi, P
served space for new object initialization. It might help.
== stanton
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] On Behalf Of Tony HeSent: Friday, October 20, 2006 9:16 AMTo:
Post all your questions about iText hereSubject: Re: [iText-questions] out of memory problem with PdfReader
:16 AM
To: Post all your questions about
iText here
Subject: Re: [iText-questions] out
of memory problem with PdfReader
Hi, Paulo:
I already bumped memory to -Xms32m -Xmx256m -Xss8m. It dosn't seem to
help. I actully have another file that is bigger than this one but reads OK.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Tony He
> Sent: Friday, October 20, 2006 5:16 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] out of memory problem with PdfReader
>
-Original Message-
> From: [EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]
] On> Behalf Of Tony He> Sent: Friday, October 20, 2006 2:39 AM> To: [email protected]> Subject: [iText-questions] out of memory problem with PdfReader
>> Hi, I got an out of memroy
Throw more memory at it, there's no other solution.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Tony He
> Sent: Friday, October 20, 2006 2:39 AM
> To: [email protected]
> Subject: [iTex
Hi, I got an out of memroy (outofstack) exception when creating a new PdfReader(filename).
The exceptions come from PdfReader.removeUnusedNodes() method.
My pdf file has hundreds of bookmarks.
Can anybody tell me how to get around this problem?
Thanks,
Jean
-