Increasing Java memory available to Applications Manager Client
search cancel

Increasing Java memory available to Applications Manager Client

book

Article ID: 239340

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

An increase to Java memory available to the Applications Manager Client may be necessary if the below error is see when logging into the client. The error may only appear in the client logs.

Exception in thread "Thread-6" java.lang.OutOfMemoryError: Java heap space
 at java.io.ObjectInputStream$HandleTable.grow(Unknown Source)
 at java.io.ObjectInputStream$HandleTable.assign(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at java.util.ArrayList.readObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
 at java.io.ObjectInputStream.readSerialData(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at java.util.ArrayList.readObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
 at java.io.ObjectInputStream.readSerialData(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
 at java.io.ObjectInputStream.readSerialData(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at com.appworx.shared.data.AxTableData.decompress(AxTableData.java:197)
 at com.appworx.client.screen.jobmgr.G.?(JobDocument.java:241)
 at com.appworx.client.screen.jobmgr.G.?(JobDocument.java:155)

 

Environment

Release : 9.3+

Component : Applications Manager Client

Resolution

The default memory allocation of 256MB can be increased by editing the client.properties file located in the same directory as the RunClient.jar.

  1. Edit the client.properties file with a text editor
  2. Edit the line "#runOptions=-Xmx256m", remove the # and change the memory value
  3. For example, if you want 1024 MB of Java memory, the value will be set to "runOptions=-Xmx1024m"
  4. Save the file and restart the Client if it is open to register the changes.