Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
VSE Management Software Release Notes Version A.03.00.01 > Chapter 4 Known Problems and Workarounds

Memory Issues

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Exception: java.lang.OutOfMemoryError: Out of swap space

If you encounter Java exceptions related to swap size, you might need to adjust some tunable kernel parameters.

Workaround

Use the following procedure to determine which parameters to adjust:

  1. Examine the HP SIM log file (/var/opt/mx/logs/initconfig.log) for errors that might have been reported during the mxinitconfig command. If the log file contains warnings about tunable kernel parameter settings, adjust those parameters as recommended in the log.

  2. Decrease the value of maxssiz. This parameter controls the maximum stack size. If it is set too large, HP SIM can run out of dynamic memory.

  3. Check whether HP SIM is reaching a swap space limit by entering the following command on the CMS while HP SIM is running:

    # swapinfo -tam

  4. Make sure that you do not have a ulimit -d setting that is more restrictive than the value of the maxdsiz kernel parameter.

Exception: java.lang.OutOfMemoryError: PermGen space

Under certain circumstances, the Java Run-Time Environment (JRE) on the CMS can run out of permanent generation memory space (PermGen memory). The following are symptoms of this problem:

  • A Java exception is encountered that displays the following information:

    Runtime Error in generating [a screen object]
      Exception: java.lang.OutOfMemoryError: PermGen space.
      Cause: null.
      Message: PermGen space.

  • You cannot log into or contact the HP SIM Web portal, and the error message shown in the preceding bullet appears in the log file /var/opt/mx/logs/mxdomainmgr.pid.out (where pid is the process id of the currently running mxdomainmgr process).

This exception is most likely to occur when executing Java Servlet Pages (JSPs).

Workaround

Use the following procedure to resolve this problem.

  1. Verify that you are running HP SIM version C.05.00.02.00.08 or later. If not, you must upgrade to this version of HP SIM in order to make the configuration changes described in the following steps. To display the HP SIM version, enter the following command on the CMS:

    # /opt/mx/bin/mxversion

  2. Edit the property file /etc/opt/mx/config/globalsettings.props on the CMS.

  3. Search for the MX_JVM_OPTS property. If an entry for this property exists, modify its value to include the following text:

    -XX:MaxPermSize=96m

  4. If an entry for this property does not already exist, create the following entry in the file:

    MX_JVM_OPTS = -XX:MaxPermSize=96m

  5. Restart HP SIM using the commands:

    # /opt/mx/bin/mxstop
    # /opt/mx/bin/mxstart

  6. If the problem occurs again, you might need to use a value larger than 96 MB. For example:

    -XX:MaxPermSize=128m

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2006-2007 Hewlett-Packard Development Company, L.P.