java.lang.OutOfMemoryError: Metaspace errors on Linux Satellites

  • 7017607
  • 14-May-2016
  • 10-Oct-2017

Environment

Novell ZENworks Configuration Management 11.4.1
Novell ZENworks Configuration Management 11.4.2

Situation

On 11.4.1 / 11.4.2 Linux satellites may have zac errors or failure to start Authentication service errors.

ERROR (from zmd-messages.log):

[AuthSatelliteServer] [] [The Authentication Satellite Service service could not be started from its current state: Starting]

ERROR (in zmd-messages.log if set to debug level, and in novell-zenworks-xplatzmd.out):

[DEBUG] [03/17/2016 12:10:40.588] [10871] [ZenworksAgent] [2636] [] [AuthSatelliteServer] [] [Exception Type: class java.lang.OutOfMemoryError] [] [] [] [ZENworks Agent]
[DEBUG] [03/17/2016 12:10:40.588] [10871] [ZenworksAgent] [2636] [] [AuthSatelliteServer] [] [Stack: java.lang.OutOfMemoryError: Metaspace] [] [] [] [ZENworks Agent]


Resolution

This is fixed in version ZENworks 2017 Update 1 (17.1.0) - see KB 7020155 "ZENworks Configuration Management 2017 Update 1 - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7020155

Workaround:
Increase MaxMetaspaceSize from the default of 128 MB (ZENworks 11.4.1) or 256 MB (ZENworks 11.4.2)
  1. Make a backup of this file:  /etc/init.d/novell-zenworks-xplatzmd
  2. Stop the agent service:
    /etc/init.d/novell-zenworks-xplatzmd stop
  3. Modify /etc/init.d/novell-zenworks-xplatzmd to increase MaxMetaspaceSize:
    Change from:
    MEM_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=16m -XX:MaxMetaspaceSize=128m"
    to:
    MEM_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=16m -XX:MaxMetaspaceSize=512m"
  4. Start the agent service:
    /etc/init.d/novell-zenworks-xplatzmd start


Additional Information

The default MaxMetaspaceSize value has been increased from 128 MB to 256 MB in ZENworks 11.4.2. Nevertheless java.lang.OutOfMemoryError: Metaspace error can still occur with ZENworks 11.4.2.

If the problem still occurs, set to 512.