Jobs fails to run with the error message "unable to create new native thread"
search cancel

Jobs fails to run with the error message "unable to create new native thread"

book

Article ID: 52230

calendar_today

Updated On:

Products

Workload Automation Agent DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

Description:

Jobs submitted to the System Agent could not run, getting "unable to create new thread" messages?

 

Environment

Release:
Component: SYSAGD

Resolution

Solution:

CA Workload Automation agent is a java application. By default, the allocated Java heap size is 128MB. The problem is that Java heap size allocated to the applications is being exceeded.

For each application generation, a new thread is allocated and jobs submitted to the agent are running out of memory and unable to create new thread as reported in the agent log.

For example:

Tue Mar 02 13:23:37.796 GMT 2010 [ CRITICAL ] [FileMonPlugin Internal   Thread, 5, FileMonPlugin] CybWOBFiletrigDefineHandler.processWob[:147] -   cybermation.plugins.filemon.wobhandler.CybWOBFiletrigDefineHandler   java.lang.OutOfMemoryError: unable to create new native thread

The solution is to increase the Java heap size in the agentparm.txt file (located in the agent installation directory), based on the available resources on the Agent server and recycle the Agent.

It is recommended to include the parameter as a range in the agentparm.txt file;

For example:

oscomponent.jvm.x.options=-Xms256m;-Xmx512m

This would allocate a minimum of 256MB and maximum of 512MB of heap size.