cancel
Showing results for 
Search instead for 
Did you mean: 

Error getting while deploying the application (java.lang.OutOfMemoryError).

Former Member
0 Kudos

Hi,

I am trying to migrate an application from JBoss to SAP Netweaver WAS.

I am getting an exception when i am trying to deploy the application from Netweaver developer studio as "<b>java.lang.OutOfMemoryError</b>". The portion of the stack is given below,

<b>Caused by: com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:

The system is out of resources.

Consult the following stack trace for details.

java.lang.OutOfMemoryError

at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:476)

at com.sap.engine.services.ejb.deploy.DeployAdmin.deploySingleJar(DeployAdmin.java:625)

at com.sap.engine.services.ejb.deploy.DeltaDeployAdmin.makeUpdate(DeltaDeployAdmin.java:185)

at com.sap.engine.services.ejb.EJBAdmin.makeUpdate(EJBAdmin.java:529)</b>

I heard that by changing some configuration values, we can resolve the problem (like adjusting -Xms & - Xmx parameters as well as the Max threads). But i don't know in which script/ tool should i find these settings to change.

Could you please share your knowledge in this regard,

Best regards,

Sudheesh...

Accepted Solutions (1)

Accepted Solutions (1)

Opgenorth
Employee
Employee
0 Kudos

Hello Sudheesh,

start the config tool in the directory

C:\usr\sap\J2E\JC00\j2ee\configtool (J2E\JC00 depends on your installation) with the batch file configtoool.bat.

In the left tree you have to navigate to cluster-data -> instance_IDXXXXX -> server_IDXXXXX.

In the tab 'General' you can increase the Max Heap Size. This will change the -Xmx parameter for the Java VM of the server. Under 'Java Parameters' you should also have the parameter -XX:MaxPermSize=128m. 128m is the minimum.

Best regards,

Juergen

Former Member
0 Kudos

Dear sir,

I have configured the XMX of JDK. Now it seems to be working fine. Thankyou very much for your help...

Best regards,

Sudheesh...

Answers (0)