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.
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 accountSign in
Already have an account? Sign in here.
Sign In Now