cancel
Showing results for 
Search instead for 
Did you mean: 

Start java engine failure: how to increase space for object heap

Former Member
0 Kudos

I am trying to install SAP Netweaver 7.0 SP14 SR3 java trail edition but its failing at Phase 30(Starting Java Engine).

I get this message in the log file:

Java process server0 of instance J2E/JC00 [Java: (dispatcher: RUNNING, server0: UNKNOWN)] did not start after 6:00 minutes. Giving up.

In dev_server0 trace file, I could see the following error:

Error occurred during initialization of VM

Could not reserve enough space for object heap

[Thr 1136] JLaunchIAbortJava: abort hook is called

[Thr 1136] **********************************************************************

      • ERROR => The Java VM aborted unexpectedly.

      • Please see SAP Note 943602 , section 'Java VM crashes'

      • for additional information and trouble shooting.

**********************************************************************

[Thr 1136] JLaunchCloseProgram: good bye (exitcode = -2)

I believe I have to go to the config tool, change the vm settings to increase the initial and maximum heap sizes(Xss, Xmx and Xms) but I don't know how to do it. Can anyone help out?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Gokul,

You need to manually set JVM heap size parameters at the time of Installation:

Go through the Below SAP Note for more Information :

Note 710146 - How to change J2EE Engine JVM Settings.

Note 723909 - Java VM settings for J2EE 6.40/7.0

You configure number of server nodes as per the formula:

The rule of thumb for number of server nodes for SUN and HP JavaVM with 1 GB Heap each will be

ServerNodes = (AvailableMemory / 1.5 GB)

Note :

Factor 2.5 should be used instead of 1.5 for 64 bit with 2GB heap size.

If you find any JVM memory related issues in Trace file located at /usr/sap/<SID>/<Inst_id>/j2ee/cluster/server0/log/defaultTrace.trc

If the restart of the server happens regularly, add the following J2EE Parameter in the ConfigTool ->section J2EE Parameters.

-XX:MaxPermSize=3842M

-XX:PermSize=384M

(for 64 bit Linux )

(MaxPermSize specifies the maximum size for the permanent generation heap,

a heap that holds objects such as classes and methods)

If you need more info,Let me know,I shall help you.

Regards,

Karthick Eswaran

Edited by: Karthick Eswaran on Jun 16, 2008 3:47 AM

Former Member
0 Kudos

Hi,

Thanks for the answer, but I felt it would be a bit complex, so I reformatted the system and installed SAP Netweaver Java SP9 trail version this time. Installation went smoothly but when I started the SAP MMC, I could see all components in green except the SDM Server. The dispatcher, Server0 are running under the J2EE process node except for the SDM server. The status for SDM shows as stopped and it won't even go to yellow color. I rightclicked the mouse by pointing on SDM Server node to restart but the restart option is disabled for this. Can you tell me how I can make the SDM Server run?

Former Member
0 Kudos

Gokul,

To start SDM server,use jcmon (for Windows and UNIX) or MMC (for Windows) if SDM is in integrated mode or follow the next steps:

1.Open a console to the system.

2.Go to /usr/sap/<SID>/< INSTANCE_ID>/SDM/program

3.Run

StartServer.bat (for Windows)

./StartServer.sh (for UNIX)

To open SDM in Standalone mode:

1.Open a console to the system.

2.Go to /usr/sap/<SID>/< INSTANCE_ID>/SDM/program

3.Run

sdm. bat jstartup "mode=standalone" (for Windows)

./sdm.sh jstartup mode=standalone (for UNIX)

To set SDM mode to integrated Mode:

1.Open a console to the system.

2.Go to /usr/sap/<SID>/< INSTANCE_ID>/SDM/program

3.Run

sdm. bat jstartup "mode=integrated" (for Windows)

./sdm.sh jstartup mode=integrated (for UNIX)

Check out this SAP note if SDM start fails with some errors:

Note 905856 - Failed SDM command execution

Note 879377 - How to adjust the Java heap memory used by SDM?

Regards,

Karthick Eswaran

Edited by: Karthick Eswaran on Jun 17, 2008 6:54 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks karthik for the solution. I managed to figure it out the hard way and got the same answer which u suggested.