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

Document ID : KB000087178
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
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.

0EMb0000000IZ3r.png

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.

Environment:
OS: Windows
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: Additional RAM is needed for the Java VM.
Resolution:
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):
N/A
Additional Information:
Workaround :
Restarting the Windows box may free up enough RAM to work around this issue.