Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

"java.lang.OutOfMemoryError: Java heap space" error message appears when exporting configuration from InterScan Web Security Virtual Appliance (IWSVA)

    • Updated:
    • 5 Aug 2016
    • Product/Version:
    • InterScan Web Security Virtual Appliance 6.0
    • InterScan Web Security Virtual Appliance 6.5
    • Platform:
    • N/A N/A
Summary

Exporting the configuration from the IWSVA web console fails with an HTTP 500 status. The page displays the error message "java.lang.OutOfMemoryError: Java heap space".

HTTP 500 error

Click image to enlarge.

The log file of the web console (/var/iwss/tomcat/logs/catalina.out) shows the following corresponding error:

[timestamp] org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet invoker threw exception
java.lang.OutOfMemoryError: Java heap space
Details
Public

The error occurs when the configuration file is bigger than 256 MB, causing a heap overflow of the Java Virtual Machine (JVM). To resolve the issue, increase the heap size:

  1. Edit the configuration file /usr/iwss/AdminUI/tomcatctl.sh as described in KB 1113864.
  2. Find the following line:

    CATALINA_OPTS="-Xmx256m"

  3. Set this parameter to a larger value, for example change it to:

    CATALINA_OPTS="-Xmx512m"

  4. Restart the service for the web console with the following command:

    /usr/iwss/S99IScanHttpd restart

 
Possible values for the heap size parameter are 256, 512, 1024, etc. If increasing the size to 512 MB does not resolve the issue, please choose a higer value, for example "-Xmx1024m".
Premium
Internal
Rating:
Category:
Troubleshoot; Migrate
Solution Id:
1114920
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.