jiurriza Posted December 5, 2006 Share Posted December 5, 2006 I'm generating a report in pdf format with over 20.000 pages (1 page per item in the database with all the information of that item), and when I try to view de report I get a java.lang.OutOfMemoryError, Java heap space error. I'm using Eclipse, iReport and JasperReport. When I run the report to preview it on iReport everything goes well...the problem is when I run it from my web application. Does anybody have any clue on how I can solve this? Any help is appreciated. Thanks Cheers,Jose I.Post edited by: jiurriza, at: 2006/12/05 13:50 Link to comment Share on other sites More sharing options...
bogdangh Posted December 6, 2006 Share Posted December 6, 2006 In JVM settings from Eclipse set:-Xmx512m (or -Xmx1024m)-XX:MaxPermSize=256m and see if you get the same error. Link to comment Share on other sites More sharing options...
jiurriza Posted December 6, 2006 Author Share Posted December 6, 2006 Thanks for your reply...Unfortunately it didn't work. Just to be sure I did it the right way, I went to eclipse preferences -> tomcat -> jvm settings -> and I added both -Xmx512m and -XX:MaxPermSize=256m to the "Append to JVM parameters". I also tryed with 1024m. Anything else I could try? Cheers,J.I. Link to comment Share on other sites More sharing options...
bogdangh Posted December 6, 2006 Share Posted December 6, 2006 On my machine i have also -XX:NewSize=200m. If this one doesnt help either, i'm out of ideas. B. 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