Zman Out of Memory Error

  • 7017369
  • 15-Mar-2016
  • 21-Mar-2016

Environment

Novell ZENworks Configuration Management 11.4 Zman

Situation

A zman command is not functioning. Example below of the zman ww command.

Zman Error from Command Prompt:

C:\Users\Administrator>zman ww Windows7

Username:administrator
Password:******

Successfully assigned quicktask to the device "/Devices/Workstations/Windows7"
com.novell.zenworks.datamodel.exceptions.InternalDataModelException: java.lang
utOfMemoryError: Java heap space
        at com.novell.zenworks.datamodel.session.hibernate.HibernateInfo$2.run
ibernateInfo.java:196)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:3332)



From Zman Log:

[TRACE] [03/15/2016 09:34:36.347] [796] [ZMAN] [1] [] [ZMan] [] [Command: ww Windows7 ] [] [] [] [ZENServer]
...
[TRACE] [03/15/2016 09:35:01.900] [796] [ZMAN] [1] [] [DataModelConfiguration] [] [Initialized DataModelConfiguration: zenaudit.xml] [] [] [] [ZENServer]
[DEBUG] [03/15/2016 09:37:38.057] [796] [ZMAN] [1] [] [ZMan] [] [com.novell.zenworks.wol.WOLException: connection to Database failed
    at com.novell.zenworks.wol.WakeOnLanSoapImpl.addWOLActionToQueue(WakeOnLanSoapImpl.java:91)


Resolution

1. Backup the following file, $ZENWORKS_HOME%\conf\zman\properties\zman-config.properties if Windows or /etc/opt/novell/zenworks/zman/properties/zman-config.properties if Linux.

2. In zman-config.properties, edit the following line:
JVM_STARTUP_OPTIONS=-Xms64m -Xmx128m -Dfile.encoding=UTF8

Increase the value of -Xmx128m to a higher value, for example to 256M:
JVM_STARTUP_OPTIONS=-Xms64m -Xmx256m -Dfile.encoding=UTF8

3. Save the file.

4. Rerun the zman command, depending on the command you may need to increase the memory value and the save the file again.

Cause

The zman memory configuration is a "moving target". It may need to be increased depending on the command you're attempting to use.

Additional Information

When increasing the memory value for zman, please consider the primary server on which you're increasing the value. If the server has high usage, and you have another less utilized primary server, you may wish to choose that server to configure the memory value for zman and run the zman command(s) in question from there instead.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.