Hi Fabio, It's been awhile since I used JasperReports, but I recall running into a similar memory issue when generating PDFs using JasperReports. A few things you might want to try are: 1. Google for "JasperReports PDF permgen error" or similar, you should get a lot of results. 2. Check whether you're using the latest version of JasperReports, the issue may have been resolved. 3. Double check your JVM permgen settings to make sure you have enough space. IIRC, the permgen arg had to be set pretty high, something like: -XX:MaxPermSize=256m
Another more drastic approach may be to try upgrading to Java 7, apparently it has much better memory allocation (http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhan cements-7.html) and garbage collection support (http://docs.oracle.com/javase/7/docs/technotes/guides/vm/G1.html). If you take this approach, I would test out your application locally and as well as in a test environment before deploying it to your production environment. For a features list for JDK 7, you can check out http://openjdk.java.net/projects/jdk7/features/ HTH, Matt On 5/23/12 8:43 AM, "Unger, Richard" <[email protected]> wrote: >Hi Fabio, > >The way I see it, cause and effect are reversed compared to what you are >assuming: >I think the JCR session was not closed because the OOM error occurred, >not the other way round. > >However, I can't be sure. Maybe someone who knows more about Blossom or >JasperReports can say. > >Regards from Vienna, > >Richard > > >-----Ursprüngliche Nachricht----- >Von: [email protected] >[mailto:[email protected]] Im Auftrag von Fabio Paroni >(via Magnolia Forums) >Gesendet: Mittwoch, 23. Mai 2012 14:16 >An: Magnolia User List >Betreff: [magnolia-user] Re: Jasper Report problem > >Hi Richard, > >thanks for reply. I have already set the CATALINA_OPTS for the Permgen >memory problem..but nothing change. In my opinion the real issue are >these first lines: >[code]WARN 22.05.2012 18:14:11 org.apache.jackrabbit.core.SessionImpl >SessionImpl.java(finalize:1667) -- Unclosed session detected. The session >was opened here: >java.lang.Exception: Stack Trace >at >org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:237)[/code] > >Every time I get this warning, I get the permgen problem; if this warning >doesn't appear everything works fine. But I don't know how to fix this. >Any suggestions? > >Thanks a lot. >Fabio > >-- >Context is everything: >http://forum.magnolia-cms.com/forum/thread.html?threadId=244556ef-e566-495 >3-8873-89175e19bea2 > > >---------------------------------------------------------------- >For list details, see >http://www.magnolia-cms.com/community/mailing-lists.html >Alternatively, use our forums: http://forum.magnolia-cms.com/ >To unsubscribe, E-mail to: <[email protected]> >---------------------------------------------------------------- > > > > > >---------------------------------------------------------------- >For list details, see >http://www.magnolia-cms.com/community/mailing-lists.html >Alternatively, use our forums: http://forum.magnolia-cms.com/ >To unsubscribe, E-mail to: <[email protected]> >---------------------------------------------------------------- > ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
