Jump to content
We've recently updated our Privacy Statement, available here ×

  • Jim W
    • Version: v5.1, v5.0, v4.8, v4.7, v4.6, v4.5, v4.2, v4.1, v4.0 Product: JasperReports® Server

    Issue:

    [toc on_off::hide=1]

    Normally, you can change the JVM options using JAVA_OPTS.  For example:

    set JAVA_OPTS=-Xms512m -Xmx2048m -XX:PermSize=32m -XX:MaxPermSize=128m
    

    If the setting does not seem to go into effect, consider the following suggestion.

     


    Resolution:

    Your JasperReports Server may be started as a Windows service.

    Refer to the JasperReports Server Installation Guide chapter on Changing JVM Options for Bundled Tomcat as a Windows Service (v5.1 - other versions may be available in our Docs).

    As of release 4.0, the Windows installer binary installs the bundled Tomcat application as a Windows Service by default.

    The steps to change JVM options are:

    1. Navigate to this directory: cd <js-install>/apache-tomcat/bin

    2. Open service.bat for editing.

    3. Look for the following line to change the JVM heap size, for example:

    4. Update this line to increase the maximum heap size from 1536M to 2048M, for example: -Xmx2048M

    5. Because Tomcat is installed as a service, you need to re-install the service. From a Windows Command Prompt, enter these commands: 

      cd <js-install>apache-tomcatscripts
      serviceinstall.bat REMOVE
      serviceinstall.bat INSTALL
      

    6. After running these commands in Windows XP, for example, the cmd shell closes after the commands are executed. The Tomcat service is removed and then installed. After execution of the commands, the service is running.

    7. Stop and restart PostgreSQL and Tomcat after completing this work as described in the JasperReports Server Installation Guide chapter on Starting and Stopping JasperReports Server.


    Ref. Case #00024859 -- 23:36, 12 March 2012 (UTC)  

     


    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...