on 04-09-2007 8:56 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.