search cancel

Autosys agent fails to start

book

Article ID: 243169

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

Autosys system agent service does not start. The startup command returns "Unable to start agent service"

# ./cybAgent -a
Agent service is starting...
Unable to start Agent service

The file nohup.stderr from the agent install location has the following message - 

# cat nohup.stderr 
Exception in thread "MainThread" java.lang.ExceptionInInitializerError
        at java.lang.J9VMInternals.ensureError(J9VMInternals.java:148)
        at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:137)
        at java.lang.J9VMInternals.newInstanceImpl(Native Method)
        at java.lang.Class.newInstance(Class.java:1852)
        at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
        at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
        at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
        at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(AccessController.java:678)
        at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown Source)
        at java.lang.J9VMInternals.newInstanceImpl(Native Method)
        at java.lang.Class.newInstance(Class.java:1852)
        at cybermation.library.security.z.b(Unknown Source)
        at cybermation.library.security.k.a(Unknown Source)
        at cybermation.library.security.k.<init>(Unknown Source)
        at cybermation.library.security.k.<init>(Unknown Source)
        at cybermation.library.security.k$a.<clinit>(Unknown Source)
        at cybermation.library.security.k.a(Unknown Source)
        at cybermation.library.security.k.a(Unknown Source)
        at cybermation.agent.CybAgentDriver.runApplication(Unknown Source)
        at cybermation.agent.CybAgentDriver.main(Unknown Source)
Caused by: java.lang.NullPointerException
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:336)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:881)
        at org.bouncycastle.jcajce.provider.digest.Blake2b$Mappings.<clinit>(Unknown Source)
        ... 19 more

Cause

This exception is due to the JVM does not have enough heap memory to load all the required java libraries into the process

Environment

Release : 12.0 and higher

Component : Workload Automation System Agent

Resolution

The default heap size for java is determined based on the available physical memory on the server. And it varies from server to server as the available memory. This problem only appears if the server's available memory is less and, the JVM considers even lesser as a max limit. That might not be enough to load all the required libraries for the applications to function appropriately.

Increase the JVM heap limit for the system agent to 2048m or higher.

Update the following agent property in the agent configuration file (agentparm.txt) -

oscomponent.jvm.x.options=-Xmx2048m

Restart the agent

Additional Information

Out of Heap exception in autosys system agents -

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-system-agent/12-0/troubleshooting/troubleshoot-ca-wa-system-agent-for-unix-linux-windows-iseries-or-hpe-integrity-nonstop.html

Default max heap size for Java 8

https://blog.openj9.org/2020/04/30/default-java-maximum-heap-size-is-changed-for-java-8/