java.lang.OutOfMemoryError: Java heap space Report not generating

The error java.lang.OutOfMemoryError: Java heap space occurs during Katalon’s PDF report generation because JasperReports, which Katalon uses internally, runs out of memory while processing images. This typically happens when the test execution includes many screenshots or large image files embedded in the report. Try increasing Katalon’s heap memory by updating the -Xmx value in the katalon.ini file (for example, -Xmx4096m), If possible reduce the number or size of screenshots included in reports. Temporarily disable PDF report generation. This can give you an idea if this is the issue source. Split the test suites and upgrade to a newer Katalon version. This may also help improve memory management during report generation. If you are interested in learning about the types of OutOfMemoryError, you can check out this blog: Types of OutOfMemoryError, Causes, and Solutions.

1 Like