Configuring Jaspersoft as a Windows Service
book
Article ID: 76789
calendar_today
Updated On:
Products
Clarity PPM On Premise
Issue/Introduction
How to configure Jaspersoft as a Windows service?
Environment
Jaspersoft 7.8 and Tomcat 9.0.37
Resolution
Prerequisites: It is necessary to have the correct Java executables referenced in the PATH environment variable.
- Navigate to the bin folder inside the Tomcat folder.
- Type "service install JasperReports", JasperReports being the name of the service, and execute it to create the service.

- Edit the newly created service by executing "tomcat9w.exe //ES//JasperReports" from the above directory.
- We see a service dialog open up. Navigate to the Java tab to edit the JVM configuration.
- Add the below JVM parameters under section Java Options:
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:MetaspaceSize=256m
-Duser.home=C:\Users\Administrator
- NOTE: UseConcMarkSweepGC is used to determine the Java Garbage collector method for Jaspsersoft
- Duser.home is the home folder of the user that was used to install Jaspersoft
- Specify values for Initial Pool Memory and Maximum Pool Memory. Thread stack size remains as 2048.

- Apply the changes and launch the service from Windows services console.
Feedback
thumb_up
Yes
thumb_down
No