Jump to content
Changes to the Jaspersoft community edition download ×
  • Configuring Tomcat's Java Heap Size


    gregd
    • Version: v8 Product: JasperReports® Server

    [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)

    1. Identify the Tomcat installation directory and navigate inside the bin folder of Tomcat server.
    2. Tomcat Windows service installed by Jaspersoft will be named jasperreportsTomcatw.exe as shown below.

    converted-image.png.8dd34b1a2f7524a7ab4d087d8a28f51a.png
     

    Double-click on the jasperreportsTomcatw.exe/tomcat8w.exe which should open the below popup window.

    converted-image.png.7946ee1479ca3bfa9c51b9fa932b2949.png

     

    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.

    converted-image.png.718e61a0a8f6d6dccc0267adf7fa09cb.png

     

    The above configuration allocates 4 GB memory to the start Java heap, 4 GB for the maximum heap size

    1. Click OK to close the applet.
    2. 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.

    converted-image.png.78bd0acd8f80520819b165a9a3c62ad8.png

     

     

    Quick Reference

     


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...