cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR => JHVM_LoadJavaVM: Cannot create Java VM (rc=-6)

Former Member
0 Kudos

Hi experts

We installed JAVA AS, EP Core and EP (netweaver2004s) on windows 2003 SP2 x64 and MS SQL 2005 as MSCS.

We installed system succesfully. After changing some java parameter for both dispatcher and server via configtool. We could not start system.

We see this messages

dev_server0:

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

Unrecognized VM option 'NewSize171M'

[Thr 4768] *** ERROR => JHVM_LoadJavaVM: Cannot create Java VM (rc=-6) [jhvmxx.c 542]

[Thr 4768] *** ERROR => Cannot load Java VM (server) (rc=-1) [jlnchxxi.c 748]

[Thr 4768] **********************************************************************

      • ERROR => Java VM initialization failed.

      • Please see SAP Note 943602 , section 'Java VM initialization issues'

      • for additional information and trouble shooting.

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

[Thr 4768] JLaunchCloseProgram: good bye (exitcode = -1)

std_server0.out:

-


stdout/stderr redirect

-


node name : server0

pid : 4712

system name : BPP

system nr. : 00

started at : Wed Nov 28 13:21:13 2007

[Thr 5732] MtxInit: -2 0 0

Unrecognized VM option 'NewSize171M'

-


We are waiting for your reply.

Best Regards...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,

this would be a memory issue .see th below note.,

Note 723909 - Java VM settings for J2EE 6.40/7.0

hope this helps.

Regards,

Gopinathan.

Former Member
0 Kudos

Hi

I know that oss note. Our problem occured after applying of that oss note.

There are two instance on our system because of MSCS. We applied all parameters on both instance. We could not remember default values of parametres, so we could not undo.

How can we find which parameter cause this problem?

Best Regards...

Former Member
0 Kudos

Hai,

have a look at the following parameters for JVM in config tool.

<b>Memory Works in JAVA (JVM):</b>

Two types of memory: 1.Heap, 2.Perm

--> When Objects are instantiated, they use heap memory.

--> when a new class is loaded, it uses perm memory.

Each memory type has a start and max setting. Make the start and max settings for

heap the same.

--> -Xms1024m start

--> -Xmx1024m max

You may increase the value if you have sufficient memory available.

Make the start and max settings for Perm for the same fixed value

--> -XX:PermSize=128m start

--> -XX:MaxPermSize=128m max

hope this helps..

Regards,

Gopinathan.

Former Member
0 Kudos

Hi Gopinathan

There are six location for these parameters.

cluster_data ->instance_ID18808->servers general

cluster_data ->instance_ID18808->dispatcher_ID1880800->general

cluster_data ->instance_ID18808->server_ID1880850->general

cluster_data ->instance_ID76308->servers general

cluster_data ->instance_ID76308->dispatcher_ID7630800->general

cluster_data ->instance_ID76308->server_ID7630850->general

Which of these i should change?

Best Regards....

Former Member
0 Kudos

Hai,

These above settings can apply to the Servers (not dispatcher). So edit in the server Settings.

regards,

Gopinathan.

Former Member
0 Kudos

I applied memory setting, but problem is going on.

dev_server0:

Unrecognized VM option 'NewSize320M'

[Thr 2248] *** ERROR => JHVM_LoadJavaVM: Cannot create Java VM (rc=-6) [jhvmxx.c 542]

[Thr 2248] *** ERROR => Cannot load Java VM (server) (rc=-1) [jlnchxxi.c 748]

[Thr 2248] **********************************************************************

      • ERROR => Java VM initialization failed.

      • Please see SAP Note 943602 , section 'Java VM initialization issues'

      • for additional information and trouble shooting.

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

[Thr 2248] JLaunchCloseProgram: good bye (exitcode = -1)

stderr3:

[Thr 3972] MtxInit: -2 0 0

java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart

Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart

Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart

Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart

Exception in thread "main"

std_server0.out:

-


stdout/stderr redirect

-


node name : server0

pid : 3964

system name : BPP

system nr. : 00

started at : Wed Nov 28 16:59:07 2007

[Thr 4208] MtxInit: -2 0 0

Unrecognized VM option 'NewSize320M'

Former Member
0 Kudos

Hi

After i removed NewSize320M from related server parameters, i can open system succesfully.

Edited by: Hande Kilcer on Dec 8, 2010 4:25 PM

Former Member
0 Kudos

Problem was solved as i mentioned above