Java heap space errors prompt when user attaches a huge file from Web Client

  • KM01427117
  • 03-Mar-2015
  • 26-Mar-2015


Web client prompts error messages when the attachment uploaded is too huge. This document provides options for handling huge attachments.


When attaching a huge file to a Change Record from Web Client, user encounters following error messages:


org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [HP Service Manager Web] in context with path [/webtier-9.32] threw exception [java.lang.OutOfMemoryError: Java heap space] with root cause

java.lang.OutOfMemoryError: Java heap space


When the available java heap space of web application server such as tomcat is smaller than the size of attachment file, system would prompt "OutOfMemoryError: Java heap space" error.


There are some options when handling huge attachments.

NOTE: Please be advised that uploading attachments with huge size would consume system resources


1. To expand the java heap space of Tomcat

Set the Java Options:-Xmx of Apache Tomcat Properties to a larger value

i.e. increase -Xmx parameter from 256MB to 512MB


2. To split the attachment file.

Users could split a huge attachment into parts before uploading to Service Manager.

HP recommends that one attachment file should be <10MB, or to split a huge attachment file into <10MB files each.


3. To set the limitation of attachments in Service Manager.

Login to Service manager as falcon or operator with "system administrator" role.

Go to Menu navigator > System administration > Base system administration > Miscellaneous > System Information Record > General Tab

Specify a value for "Max Attachment Size" field

Please check for more details.

Note:about the Max attachment file size value ,customer should test on their system (based on Java heap size memory) and find the optimum value .