[toc on_off::hide=1]
In this tutorial you will use a GUI utility that ships with Tomcat to configure Java options. This tutorial uses Tomcat8, but the techniques should be the same for newer releases.
Tomcat running as a Windows Service
Locate and copy the location of tomcat8w.exe (if using Tomcat9, this will be named tomcat9w)
- Identify the Tomcat installation directory and navigate inside the bin folder of Tomcat server.
- Tomcat Windows service installed by Jaspersoft will be named jasperreportsTomcatw.exe as shown below.
Double-click on the jasperreportsTomcatw.exe/tomcat8w.exe which should open the below popup window.
In the popup window, click on the Java tab and edit the Initial memory pool(Xms) and Maximum memory pool(Xmx) values according to the requirement.
The above configuration allocates 4 GB memory to the start Java heap, 4 GB for the maximum heap size
- Click OK to close the applet.
- Restart the Tomcat service (from the Start menu, you can navigate to JasperReports Server > Start or Stop Services).
Once the server is started, you can verify the Xms and Xmx values in the catalina.log file which should be available in apache-tomcatlogs as shown below.
Quick Reference
- The Tomcat Windows service installed by the Jaspersoft installer is named jasperreportsTomcat.
- The //ES// command means "edit service". You can learn more about this at http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html.
Recommended Comments
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