Cannot fork a new process to execute the job

Document ID : KB000031388
Last Modified Date : 14/02/2018
Show Technical Document Details

SYSAGT Version R11.3, Service Pack 2, Maintenance Level 1, Build 525

During job submission on AIX, got the following error:

CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: FAILURE JOB: *** MACHINE: yyy EXITCODE: 1 TEXT: <Submission error>

In the System Agent log, the following message is displayed

CAWA_E_20039 Cannot fork a new process to execute the job:/sma/au/p1/bin/waae/SystemAgent/WA_AGENT/spool/AP1_SCH/MAIN/WAAE_WF0.1/53059.851639_1.07BC2D53FBDE543A96768DDCC254885CC497010F_wrapper.sh, reason:Resource temporarily unavailable.Error code: 11

Resolution:

From the CA Workload Automation Agent for UNIX, Linux, Windows, or i5/OS Release Notes

r11.3 SP2, Cumulative 1

Known Issues chapter:

Resource Temporarily Unavailable Errors on AIX

Valid on AIX

When running jobs on AIX, some of the jobs fail to complete with submission errors (SUBERROR). The job log contains the following error message:

CAWA_E_20039 Cannot fork a new process to execute the job:/usr/bin/ksh, reason:Resource temporarily unavailable.Error code: 11

Solution:

The error can occur because of a memory issue.

Check the maximum number of user processes on your system.

lsattr -E -l sys0 -a maxuproc

Sample output:

maxuproc 128 Maximum number of PROCESSES allowed per user True

To resolve the issue, you'll have to increase the number of user processes to 1024 using the following command:

chdev -l sys0 -a maxuproc=1024