Tips for the Reporting Server

This page provides different tips for managing the Reporting Server in Windows and Linux environments.

Tips for the Reporting Server on Windows

Find the Tomcat version:

$INSTALLDIR\apache-tomcat\bin\version.bat

$INSTALLDIR\apache-tomcat\bin\catalina.bat version

Find the Reporting Server version:

dir $INSTALLDIR\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib\*JasperPatch*.jar

Control Reporting Server in Task Manager:

Open the Windows Task Manager and go to the Services Tab. The following services can be Started, Stopped, or Restarted:

jasperreportsTomcat

jasperreportsPostgreSQL

Change Memory Settings:

  1. Go to your <Install dir>\apache-tomcat\bin directory.

  2. Right-click jasperreportsTomcatw.exe and select Run as Administrator.

  3. On the window that opens, go to the Java tab.

  4. In the Java Options section, add the following lines

    -XX:PermSize=32m

    -XX:MaxPermSize=512m

  5. Update the Initial and Maximum memory pool setting as required.

  6. Restart the Jasper services using the Stop JRS Service and Start JRS Service desktop shortcuts.

Tips for the Reporting Server on Linux

Find the Apache Tomcat version:

$INSTALLDIR/apache-tomcat/bin/version.sh

$INSTALLDIR/apache-tomcat/bin/catalina.sh version

Find the Reporting Server version:

ls –l $INSTALLDIR/apache-tomcat/webapps/jasperserver-pro/WEB-INF/lib/*JasperPatch*.jar

Control Reporting Server from the command line:

sudo systemctl start bi-server.service

sudo systemctl stop bi-server.service

sudo systemctl status bi-server.service

sudo systemctl restart bi-server.service

Update memory settings:

  1. $INSTALLDIR/apache-tomcat/scripts/ctl.sh

    Remove the following JAVA_OPTS line in the start_tomcat() function:

    export JAVA_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=32m -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true"

  2. $INSTALLDIR/apache-tomcat/bin/setenv.sh

    Remove the following lines:

    JAVA_OPTS="-Djava.awt.headless=true -Djs.license.directory=/opt/Insight $JAVA_OPTS"

    JAVA_OPTS="-Xms1024m -Xmx2048m -Xss2m $JAVA_OPTS " # java-memory-settings

    Add the following line and set Xms and Xmx to the desired values:

    CATALINA_OPTS="-Xms1024m –Xmx2048m -Xss2m -XX:PermSize=32m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Djs.license.directory=/opt/Insight"

    Change the following line:

    export JAVA_OPTS to export CATALINA_OPTS

  3. Once the above changes are made, please restart the Reporting server:

    sudo systemctl restart bi-server.service

See also: