slareports portlet doesn't generate full report in pdf format

Document ID : KB000004488
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The customer is using the  slareports portlet and if fails to create the full sla report in pdf format. After selecting the desired report and clicking on the "View as pdf" button, the url "http://../slareports/UMPReportExportServlet" starts to generate the required report but after running for some time (more than 1 minute) the returned file is empty

Environment:
UIM and UMP 8.x
Cause:

The root cause can be seen in the wasp.log at the time the user tried to export the report to pdf:

ERROR [http-80-5, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/slareports].[UMPReportExportServlet]] invoke() Servlet.service() for servlet UMPReportExportServlet threw exception 
ERROR [http-80-5, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/slareports].[UMPReportExportServlet]] java.lang.OutOfMemoryError: Java heap space 
at java.util.Arrays.copyOf(Unknown Source) 
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) 
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source) 
at java.lang.AbstractStringBuilder.append(Unknown Source) 
at java.lang.StringBuffer.append(Unknown Source) 
<snip>

The error is caused by the report being larger then the available Java Memory for the wasp probe. 

 

Resolution:

Depending on the available RAM on the machine can you please:
- open the wasp probe in raw configure 
- go to startup -> opt 
- set 
java_mem_max = -Xmx4096m 
java_mem_init = -Xms2048m 
max_perm_size = -XX:MaxPermSize=1024m 
- restart the wasp probe and generate the pdf report again.