ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Starting SAP Agent from command line results in Could not reserve enough space for object heap error


Article ID: 87178


Updated On:


CA Automic Workload Automation - Automation Engine


Error Message :
Error occurred during initialization of VM
Could not reserve enough space for object heap

When starting an SAP agent the above error message is seen as shown below.

<Please see attached file for image>


This error is only seen when starting the agent from the command line. The service manager fails to start the agent with error 'No associated window can be found' with a exit code as 1.

The only way to identify this error is to start the agent from the command line.


Cause type:
By design
Root Cause: Additional RAM is needed for the Java VM.


OS: Windows
OS Version: N/A


This error indicates the system does not have enough RAM to allocate to the Java virtual machine. The best long term solution is to add more RAM to the system. 

Fix Status: No Fix

Fix Version(s):

Additional Information

Workaround :
Restarting the Windows box may free up enough RAM to work around this issue.


1558693605007000087178_sktwi1f5rjvs16mad.png get_app