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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Getting 'OutOfMemory' exception when Katalon try to generate execution report | 3 | 645 | November 8, 2022 | |
| Unable to generate report | 9 | 4358 | January 26, 2022 | |
| Fails to generate test report - java.lang.OutOfMemoryError: Java heap space | 5 | 3220 | August 8, 2022 | |
| Java Heap Error while preparing report ( execution was successful ) | 1 | 640 | August 8, 2022 | |
| An internal error occurred during: "Export test suite report." | 2 | 350 | March 20, 2024 |