Jump to content
We've recently updated our Privacy Statement, available here ×
  • In Tomcat, JasperReports Server is up, but cannot run a report (java.lang.OutOfMemoryError: PermGen space)


    gregd
    • Product: JasperReports® Server

    Issue:

    After installing and starting the JasperReports Server application, the user is able to log in and navigate the repository. However, when attempting to run a report, the application remains in a "waiting" state indefinitely. Examining the logs reveals the following exception:

    [toc]
    Exception in thread "xxxx" java.lang.OutOfMemoryError: PermGen space (the http/port will vary)
    

    Solution:

    This error indicates there is insufficient heap memory for Tomcat to process the report generation request. In order to increase the amount of memory available to the application, please modify (or create) the file %CATALINA_HOME%binsetenv.bat for Windows (or setenv.sh for linux/unix). The arguments in that file should look similar to the below:

    set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx2048m -XX:PermSize=32m -XX:MaxPermSize=128m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
    

    Any changes made to these arguments will require Tomcat to be restarted.


    User Feedback

    Recommended Comments

    There are no comments to display.



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...