cancel
Showing results for 
Search instead for 
Did you mean: 

NW2004s Java SP9 Sneak Prev Edition Java VM crashes

Former Member
0 Kudos

Dear All,

I am installing NW2004s Sneak Preview in my system. There are 41 Steps in the complete installation process, the process executes properly till 38th step. In the 40th Step when it tries to restart the Instance the server0 is not coming up and in the developer trace it throws an error:

<b>Error occurred during initialization of VM

Could not reserve enough space for object heap

[Thr 4396] JLaunchIAbortJava: abort hook is called

[Thr 4396] **********************************************************************

      • ERROR => The Java VM aborted unexpectedly.

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

      • for additional information and trouble shooting.

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

[Thr 4396] JLaunchCloseProgram: good bye (exitcode = -2)</b>

My laptop configuration :

<b>Intel Core Duo 2 Ghz

Ram : 2 GB

Operating System : Windows XP Professional SP2

JDK : j2sdk-1_4_2_14

Note : I also tried with JDK Version :j2sdk-1_4_2_12</b>

I tried uninstalling and reinstalling it for more than 3 times but it did not help.

<b>I tried increasing the heap memory to 1024 MB for server</b>

Java parameters :

-Djava.security.policy=./java.policy

-Djava.security.egd=file:/dev/urandom

-Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy

-Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy

-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

-Djco.jarm=1

-XX:MaxPermSize=256M

-XX:PermSize=256M

-Xms1024M

-XX:NewSize=171M

-XX:MaxNewSize=171M

-XX:+DisableExplicitGC

-verbose:gc

-Xloggc:GC.log

-XX:+PrintGCDetails

-XX:+PrintGCTimeStamps

-Djava.awt.headless=true

-Dsun.io.useCanonCaches=false

-XX:SoftRefLRUPolicyMSPerMB=1

-XX:SurvivorRatio=2

-XX:TargetSurvivorRatio=90

-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer

<b>DISPATCHER</b>

<b>Heap : 170 MB</b>

Java Parameters:

-Djava.security.policy=./java.policy

-Djava.security.egd=file:/dev/urandom

-Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy

-Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy

-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

-Xms170m

-XX:NewSize=57m

-XX:MaxNewSize=57m

-XX:NewRatio=3

-XX:+DisableExplicitGC

-verbose:gc

-XX:+UseConcMarkSweepGC

I tried

threadID=298538 but could not get a clear picture.

Kindly guide me on this. Good suggestions will be rewarded.

Kind regards,

Nirmal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Many thanks Ventsi Tsachev.

It is solved. I have set maximum heap size and -Xms to 512M. It started working.

Points are rewarded.

Thanks again.

Nirmal

Former Member
0 Kudos

Hi I have a similar problem and need to change the heap size for Xmx and Xss. Can you please explain where and how we do it?

younghwan_kim
Active Participant
0 Kudos

There is "CONFIGTOOL" where you can change the heap size, which you can find under the folder where you installed Sneak Preview.

Edited by: Kim Young Hwan on Jun 17, 2008 4:42 PM

Former Member
0 Kudos

path to the tool in the hysical location:

<drive>:\usr\sap\<instance>\JC<instance number>\j2ee\configtool\configtool.bat

Former Member
0 Kudos

Hello guys,

The error message describes what the problem is:

Error occurred during initialization of VM

Could not reserve enough space for object heap

This means that the JVM can not reserve from the operation system the amount of heap memory requested by the application. Therefore you have to decrease the amount of memory set for the JEE Engine. For example try with 512mb for heap size for the server node (-Xms & -Xss).

The JVM is trying to reserve the set amount of memory as one continuous segment. Windows on the other hand has some DLL with hard coded addresses in the memory. This leads to fragmentation of the memory and often even with enough free memory this error could appear.

Regards,

Ventsi Tsachev

Technology Development Support (J2EE Engine)

SAP Labs, Palo Alto, Ca (USA)

Former Member
0 Kudos

Hello dear experts

It seems that I have a very similar problem - during NW2004s SP9 SR2 installation phase 40/41, prepare to install minimal configuration. In dev_server0 trace file I found this message:

-> arg[ 28]: -Dmemory.manager=1024M

-> arg[ 29]: -Xmx1024M

-> arg[ 30]: -Xms1024M

(...)

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

Error occurred during initialization of VM

Could not reserve enough space for object heap

[Thr 2172] JLaunchIAbortJava: abort hook is called

[Thr 2172] **********************************************************************

      • ERROR => The Java VM aborted unexpectedly.

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

      • for additional information and trouble shooting.

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

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

My config. is:

Windows 2000 with SP4

1GB of RAM

2,6 GHz CPU

Additionally, I declared two swap files (one on each partition) for virtual memory - 4GB for each.

There is more than enough space on HD for the instalation.

I tried to change the heap size from 1024 to 512 but unfortunately I failed. When I enter "java -Xms512M -Xmx512M" into the command line, I just get the info about syntax and possible options delivered with the java command, but nothing changes. It seems that I need to add a class name at the end of the command (or a .jar file). I tried this command with different class names and jars mentioned in the trace file but none of those has worked.

So my question is how to change the heap size for VM? Maybe the values for the initial and max heap size are stored somewhere, like a config file? Please, if You know anything that could help me, I will really really appreciate it. I'm fighting with the installation for more than two weeks already and I'm stuck on this heap memory issue

Best regards,

Lukasz Wilczynski

Former Member
0 Kudos

Hi,

go to configtool and set the VM settings. server should have 2048, both -Xms and -Xmx.

An entry -Xss2m be added to server node parameters.

Dispatcher at 512 and bootstrap as 545.

-Xms should always be less than -Xmx(max heap size).

Then restart the cluster and it will work.

Reward 10 points if it solve your problem else suitable points are expected.....

Former Member
0 Kudos

Hi,

you need to increase your RAM also. Make it atleast 4GB.

reward points.

Former Member
0 Kudos

Hi Mantosh Kumar,

Thanks for your reply. I made all the changes you specified. But it does not help me. Its again the same error.

Former Member
0 Kudos

Hi Mantosh Kumar,

As per the the pre-requisites of Sneak Preview NW 2004s the RAM size of 2GB is more than enough to run this sneak preview version.

Regards,

Nirmal

Former Member
0 Kudos

Hi,

Fine then it's okie. Just ensure the proper VM settings. Still if it's not okie then give the developer trace files will see to it.

Regards

Former Member
0 Kudos

Hi,

VM settings are like a trial method. Sometimes even if VM settings are set more then it leads to errors.

So try certain settings. It will help you.

REgards,

reward with points.