Ou of Memory error when Uninstalling WA Agent
search cancel

Ou of Memory error when Uninstalling WA Agent

book

Article ID: 255171

calendar_today

Updated On:

Products

Workload Automation Agent CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Business Agents (dSeries)

Issue/Introduction

Users may see an error message when trying to uninstall the WA agent [

 

 "/opt/CA/WA_Agent/UninstallData/Uninstall WA Agent"

JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 20XX/01/01 00:00:00 - please wait.
JVMDUMP032I JVM requested System dump using '/tmp/core.202xxxxx.0001.dmp' in response to an event
JVMDUMP010I System dump written to /tmp/core.202xxxxx.0001.dmp

......

JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:

java.lang.OutOfMemoryError: Java heap space
        at java.lang.StringBuilder.ensureCapacityImpl(StringBuilder.java:773)
        at java.lang.StringBuilder.append(StringBuilder.java:563)
        at java.io.UnixFileSystem.resolve(UnixFileSystem.java:108)
        at java.io.File.<init>(File.java:262)
        at java.io.File.listFiles(File.java:1212)
        at com.zerog.util.ZGUtil.inspectInstallerSubDirsLookingForResourceDir(Unknown Source)
        at com.zerog.util.ZGUtil.getResourceDirectory(Unknown Source)
        at com.zerog.ia.licensing.EditionHelper.<clinit>(Unknown Source)
        at Flexeraajd.ah(Unknown Source)
        at Flexeraajd.<clinit>(Unknown Source)
        at com.zerog.ia.installer.util.magicfolders.MagicFolder.get(Unknown Source)
        at com.zerog.ia.installer.util.magicfolders.MagicFolder.ah(Unknown Source)
        at com.zerog.ia.installer.util.magicfolders.MagicFolder.setInitializePaths(Unknown Source)
        at com.zerog.ia.installer.Uninstaller.ac(Unknown Source)
        at com.zerog.ia.installer.Uninstaller.ab(Unknown Source)
        at com.zerog.ia.installer.Uninstaller.aa(Unknown Source)
        at com.zerog.ia.installer.Uninstaller.<init>(Unknown Source)
        at com.zerog.ia.installer.Uninstaller.getInstance(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)
       at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
        at com.zerog.ia.installer.Main.main(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.zerog.lax.LAX.launch(Unknown Source)
        at com.zerog.lax.LAX.main(Unknown Source)

This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

 

 

Environment

Release : 11.5, 12.x

OS: Linux, UNIX

Component: Workload Automation System Agent

Cause

The WA Agent uses InstallAnyhwere Uninstaller to uninstall on Linux/Unix and Windows.  The error "java.lang.OutOfMemoryError: Java heap space" is likely due to inadequate memory.  Uninstaller JVM will use its own memory space, not to be confused by memory set in the agentparm.txt.  By default it will use up to 500 MB.

Resolution

Make sure the OS has about 500 MB of free memory.  If the problem persists, stop the agent and delete the agent directory manually (only on Linux and UNIX).  

Remove any startup scripts in /etc/init.d manually and disable the service if Linux is using sytemctl

systemctl disable <service_name>

For Windows, please refer to this KD.