Cannot Increase Memory Jasper Server

Hi All,

I need help with Jasper Server Windows. I am trying to increase the memory from the default -Xms1024m -Xmx2048m to -Xms2048m -Xmx4096m. 

I edited the file setenv.bat in C:\Jaspersoft\jasperreports-server-cp-7.8.0\apache-tomcat\bin but the memory does not change.

This is the file:

set JAVA_HOME=C:\JASPER~1\JASPER~1.0\java
set JRE_HOME=%JAVA_HOME%
REM set JAVA_OPTS= --JvmMs 2048 --JvmMx 4096 --JvmSs 2000 %JAVA_OPTS%
set JAVA_OPTS=%JAVA_OPTS% -Xms2048m -Xmx4096m

From the Catalina log, I see these logs:

09-Mar-2023 11:51:46.839 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms1024m
09-Mar-2023 11:51:46.839 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx2048m
09-Mar-2023 11:51:46.839 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xss2000k

Does anyone face this issue?

Thank you very much

manuel.dadda's picture
Joined: Mar 17 2022 - 8:48am
Last seen: 1 month 4 weeks ago

3 Answers:

How do you know it didn't work?
In case you haven't found it yet, the direct link to the documentation on setting the JAVA_OPTS is https://community.jaspersoft.com/documentation/tibco-jasperreports-server-community-project-installation-guide/v8/setting-jvm-options

rpeguet's picture
13385
Joined: Mar 8 2011 - 2:06am
Last seen: 4 days 4 hours ago

I would add that you can run the Diagnostics report on your JRS server once it's started up and the memory which is actually set will be displayed in that report.

mbielkiewicz's picture
Joined: Feb 23 2014 - 9:22pm
Last seen: 1 day 11 hours ago

I found the parameters here:

Launch the Tomcat configuration application. If you installed the bundled Tomcat, you can do this by going to the <js-install>/apache-tomcat/bin directory and double-clicking the jasperreportsTomcat.exe file. 

Thank you to all

manuel.dadda's picture
Joined: Mar 17 2022 - 8:48am
Last seen: 1 month 4 weeks ago
Feedback