U02000102 Error when calling the function 'fork', error code '12-Cannot allocate memory'.
search cancel

U02000102 Error when calling the function 'fork', error code '12-Cannot allocate memory'.

book

Article ID: 196045

calendar_today

Updated On: 08-16-2023

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

Unix jobs fail with the following error 

U02000102 Error when calling the function 'fork(FTX())', error code '12-Cannot allocate memory'.
U02003043 Invalid 'fork' call. Error code: ('12' - 'Cannot allocate memory)
U02000102 Error when calling the function 'fork(FTX())', error code '12-Cannot allocate memory'.

Environment

Component: Automic Automation Engine

Sub-Component: Unix agent

OS: Unix

Cause

The issue is caused due to OS resource availability - You get this error when the server runs out of resources to carry out a system operation.

Resolution

Please check the resource limitations and configuration on the server with the help our your System Admin.

Some tips would be to 

  • Provide the correct "ulimit -a" and "free -m" and "swapon -s" from the machine where the agent is running, In addition to the implemented limits in /etc/security and the pam config, and the values for vm.overcommit_memory and vm.overcommit_ratio.
  • To check what is going on in the system, check the output of 'ps aux --sort -rss'
  • To check the memory consumption of the agent run 'pmap -x $PID' for all Agent processes.

Workaround:

Restart the agent.