Hi,
We are able to generate a pdf file of 10,000 records on WAS 3.5 Server - 64 MB Heap size. The generated pdf file is 6.3 MB in size.
When we try to generate the file containing 12,000 records, the application crashes, throwing java.lang.OutOfMemoryError.
Can anyone tell me:
1. Why does iText crash ? What is the most memory intensive part of it ? ( FYI: Our report is full of table rows, if that matters. We are breaking the table on every page end...)
2. Is there any way to remove the Memory error , besides increasing the heap size?
3. Currently we are sending the output to servlet output stream. Will there be any difference if we write the output to a disk file and then give the url for downloading that file to the user ?
It will be really helpful if someone throws light on this memory issue.
Thanks,
Amit Mathur
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services limited on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.