babarincairo Posted September 19, 2006 Share Posted September 19, 2006 Hi, I have a problem with JasperIntelligence (last version) installed on a linux server. When I want to export a report in PDF, I get the following error : 11:11:33,809 ERROR [PdfServlet],http-8080-Processor23:253 - Servlet.service() for servlet PdfServlet threw exceptionjava.lang.OutOfMemoryError: Java heap space This problem is appears only when I use the Identity-H parameters for the PDF-encoding option. For me, this option is compulsory because I write arabic data in the report (mixed with latin data). Note that the PDF export works fine from iReport preview on my Windows XP machine. Thanks for your help. I work on this problem for 1 week and I can't find a solution... Link to comment Share on other sites More sharing options...
lucianc Posted September 20, 2006 Share Posted September 20, 2006 Have you tried to simply increase the heap size of the JVM? What is the maximum size of the heap now? Regards,Lucian Link to comment Share on other sites More sharing options...
babarincairo Posted September 20, 2006 Author Share Posted September 20, 2006 Not yet because I don't know how to do it. I am using Apache Tomcat/5.5.17. But, I am not sure that the probem is really that because I can create a sample report with 63 pages without problem (AllAcount). Thaks for your help Link to comment Share on other sites More sharing options...
lucianc Posted September 20, 2006 Share Posted September 20, 2006 You should read the Tomcat documentation in order to see how to increase the JVM heap size. Do you embed the fonts in the PDF file? How large is the PDF file when you export it from iReport? Link to comment Share on other sites More sharing options...
babarincairo Posted September 20, 2006 Author Share Posted September 20, 2006 yes I embed de font in the PDF. The PDF from ireport is 84KB only... Link to comment Share on other sites More sharing options...
senton9999 Posted September 20, 2006 Share Posted September 20, 2006 To increase HeapSpace you have to set a new Environment Variable called JAVA_OPTS. When starting Tomcat he will use the new options you overtake with the variable. For linux do:export JAVA_OPTS="-Xmx256m" to increase heap space to 256Mb. Under Windows you only has to open the Tomcat Configuration and under JAVA you can set the MemoryValues as you prefer. Furhter you could try to create your report directly from iReport using the virtualizer properties. hth, stefanPost edited by: senton9999, at: 2006/09/21 08:07 Link to comment Share on other sites More sharing options...
babarincairo Posted September 20, 2006 Author Share Posted September 20, 2006 oh yeah, it's work with the following options : -Xmx256m -Xss64k Thnaks a lot for your help :P Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now