search cancel

slareports portlet doesn't generate full report in pdf format


Article ID: 4488


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM)


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


UIM and UMP 8.x


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) 

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



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.