did you try a java - profiler like jprofiler? This helped me long time ago to make some optimizations to itext.

regards, David

Am 14.01.2005 um 15:55 schrieb Wahaj:

Yeah even after an explicit gc( ).

Yes it comes down but a bit I mean i tried to sign a 10 MB file where the
application took 20 MB RAM at the start and then the application took 120
MB and then dropped to 95. It should have came down to 20 MB.


Regards,
Wahaj

----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Wahaj" <[EMAIL PROTECTED]>;
<[email protected]>
Sent: Friday, January 14, 2005 7:44 PM
Subject: RE: [iText-questions] Re: signing 10 MB sized pdf document


Even after an explicit gc()?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Wahaj
Sent: Friday, January 14, 2005 1:04 PM
To: [email protected]
Subject: [iText-questions] Re: signing 10 MB sized pdf document

Hi Paulo,

I have an observation regarding iText. After the signing
process is complete
the application don't release the amount of memory which was
used in the
signing of the pdf

Example:
When the Java application was launched the system memory was
at 100 MB, when
signing process just have to start the system memory is at
105 MB, after the
signing process is compeleted the memory goes to 120MB. Now
it seems that it
took 20MB for iText to sign the PDF document (This may vary
depending upon
the size of the PDF document which is fine keeping in view
that iText loads
the compelete PDF in one go). Question is that after the
signing is done the
memory stays at 120MB. It might come down to 119 MB but don't
come back to
105 MB. It seems that iText is not releasing the memory it
took to sign the
pdf why is that ?

Regards,
Wahaj

"Paulo Soares" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
100M looks too much but reading a pdf requires memory. One
day PdfReader
will work incrementally but until then...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Wahaj
Sent: Tuesday, January 11, 2005 6:16 AM
To: [email protected]
Subject: [iText-questions] signing 10 MB sized pdf document

Hi All,

I am trying to digitally sign a 10 MB pdf document and
getting out of memory
exceptions using iText samples [it took more than 100 MB for
the sample]. I
know how to increase the heap size to remove this problem but
I was thinking
whether some effective memory management can be made in iText
like streaming
of some sort which donot take much memory while signing.
Think about signing
a 20 MB+ pdf document which would really eat up system's
memory. Is there a
way ?

Regards,
Wahaj





-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well,
almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt





-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions





------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions




------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to