Page tree
Skip to end of metadata
Go to start of metadata

Category:Deployment failed

Problem

java.lang.OutOfMemory - the system is out of resources
java.lang.OutOfMemoryError - Server cannot be started

Keywords

  • OutOfMemoryError
  • OutOfMemory
  • Out of resources
  • Compilation
  • Server cannot be started anymore
  • Java heap space
  • Failed to allocate

Symptoms

During the deployment similar error occurs:

java.lang.OutOfMemory - the system is out of resources

or

OutOfMemoryError! Node will exit with exit code 666
[EXCEPTION]
java.lang.OutOfMemoryError: Java heap space (failed to allocate 36248 bytes)

During deployment of applications certain components require code generation (EJBs) and compilation afterwards. The Java compiler fails because the default settings for maximum memory of 64 MB are insufficient for the compilation to succeed.

Solution

For complete description of the problem and the corresponding solution click here

Sample logs

Caused by: com.sap.engine.services.ejb.exceptions.BaseIOException:
Errors while compiling:
Cannot java.io.IOException: Cannot allocate memory
	at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils
.java:421)
	at com.sap.engine.services.ejb.deploy.DeployAdmin.
deploySingleJar(DeployAdmin.java:568)
	... 33 more
Caused by: com.sap.engine.compilation.CompilerProcessFailureException:
Cannot java.io.IOException: Cannot allocate memory
	at com.sap.engine.compilation.ExternalCompiler.
compile(ExternalCompiler.java:81)
	at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils
.java:419)

Related SAP Notes

N/A

  • No labels