Skip to main content
Solved

Jasper 9 memory issue

  • November 26, 2025
  • 4 replies
  • 85 views

Kalpa Mahanama
Do Gooder (Employee)
Forum|alt.badge.img+2

What could be the underlying reasons for the significant increase in memory usage across all Jasper/Maintenix instances following the recent upgrade to Jasper 9 and Maintenix, and what steps can be taken to diagnose and resolve this issue effectively?

Best answer by Savinda.Tennakoon

JasperReports 9 introduces enhanced rendering and processing features, which require more memory compared to previous versions.To fix the memory issue, start by enabling GC logging, capturing heap dumps during high memory usage, and profiling the application to track memory use. Temporarily increase the jasper.java.heapSizeInit and jasper.java.heapSizeMax settings, along with the JVM memory limits, to keep the system stable while you investigate the cause. After the system is stable, review the findings from the heap dumps and profiling to adjust memory settings for long-term improvement.

4 replies

Savinda.Tennakoon
Hero (Employee)
Forum|alt.badge.img+8

JasperReports 9 introduces enhanced rendering and processing features, which require more memory compared to previous versions.To fix the memory issue, start by enabling GC logging, capturing heap dumps during high memory usage, and profiling the application to track memory use. Temporarily increase the jasper.java.heapSizeInit and jasper.java.heapSizeMax settings, along with the JVM memory limits, to keep the system stable while you investigate the cause. After the system is stable, review the findings from the heap dumps and profiling to adjust memory settings for long-term improvement.


Forum|alt.badge.img+4
  • Sidekick (Customer)
  • November 26, 2025

What are the IFS recommended GC settings for the Jasper Servers?

+UseG1GC ?


Savinda.Tennakoon
Hero (Employee)
Forum|alt.badge.img+8

What are the IFS recommended GC settings for the Jasper Servers?

+UseG1GC ?

Hi ​@REGD 

 

There are no exact “best” GC settings because they need to be adjusted based on your system and how you use JasperReports Server. However, we recommend using the G1 Garbage Collector with fixed heap sizes (for example, -Xms4g -Xmx8g) and options like -XX:+UseG1GC and -XX:MaxGCPauseMillis=200 for stable performance. These settings help reduce pauses, improve report processing, and keep the server running smoothly under load. We can further adjust the configuration based on your server’s resources and usage patterns.Modify the setenv.sh or setenv.bat file in the JasperReports Server installation directory.

https://docs.ifs.com/documents/JasperReports_for_Maintenix_Guide.pdf 
(Chapter: Configuring JasperReports Server for Maintenix
Subsection: Application Server Settings)
 

Regards,

Savinda


Robert Bellemare
Hero (Employee)
Forum|alt.badge.img+11

I cannot find the chapter or section you have quoted in this document. The PDF is a guide for report development using JasperStudio. The Maintenix Installation and Configuration Guide provides guidance on how to use the configuration tooling and discloses the default heap settings.

There’s no need to specify UseG1GC or MaxGCPauseMillis recommended in this Jasper Community article, as these are the default settings for Java 9+. Our Jasper deliverable comes prepackaged with OpenJDK 17, and thus will already use these settings. We do not recommend alternate settings at this time. Please apply these settings only if you replaced the java version used by Tomcat.

As customers come on board with Jasper 9, we are seeing an increase in heap memory usage. In general, plan for an increase of 25% or more of the size you used on Jasper 7. If you are still experiencing stability issues, please raise a ticket with IFS Support.