cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JVM uninstallation

Former Member
0 Kudos

Hi Basis Gurus,

We have migrated to SAP JVM in production as well as QA.We did the System Copy, but while giving params to sapinst during system copy, the path for jdk was given mistakenly given  /usr/java.Now after the system copy, java is not getting up.The bootstrap log says:

Unrecognized option: -Xj9

[Thr 772] *** ERROR => JHVM_LoadJavaVM: Cannot create Java VM (rc=-6) [jhvmxx_mt.c  558]

[Thr 772] *** ERROR => Cannot load Java VM (server) (rc=-1) [jlnchxxi_mt. 752]

[Thr 772] **********************************************************************

*** ERROR => Java VM initialization failed.

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

*** for additional information and trouble shooting.

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

[Thr 772] SigISetIgnoreAction : SIG_IGN for signal 20

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

The java version in Q is currently pointing to IBM .

java -version

java version "1.4.2"

Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)

IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142ifx-20100915 (JIT enabled)

J9VM - 20100914_64612_BHdSMr

JIT  - 20090210_1447ifx2_r8

GC   - 200902_24)

Please suggest

Accepted Solutions (1)

Accepted Solutions (1)

JPReyes
Active Contributor
0 Kudos

Hi,

I had to deal with a similar case recently... theres two ways to deal with this.

Basically the issue is that if the services get compiled by the wrong java compiler they won't start.

The easiest way to fix this is to redo your system copy, Having said that your engine has not started so compilation migh not have taken place, so you migh have a chance to change the parameters in profile, VA, configtool, SDM etc and should be fine.

The other way is a bumpier road, If the services have been compiled under the wrong JDJK you'll need to change all your java home in your parameters, VA, configtool, etc, etc.. then you can force the system to recompile the services by removing the contents of server0, even with that some components will require to be redeployed.

You might want to post the error in the logs to see whats the extent of the damage.

Regards, Juan

Former Member
0 Kudos

HI Juan

Thanks for the insight,

The  bootstrap log in Q says this:

[Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.
[Thr 772] *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("libjvm.so") FAILED
  "Could not load module .
System error: No such file or directory"  (errno=2,No such file or directory) [dlux_mt.c    445]
[Thr 772] *** ERROR => Can't load VM shared library (libjvm.so) (rc=-2) [jhvmxx_mt.c  1588]
[Thr 772] **********************************************************************
*** ERROR => Cannot load the Java VM shared library.
*** Please see SAP Note 943602 , section 'Java VM shared library issues'
*** for additional information and trouble shooting.
**********************************************************************
[Thr 772] *** ERROR => Cannot load DLL for Java VM [jlnchxxi_mt. 717]

[Thr  1] Thu Apr 18 06:24:25 2013
[Thr  1] SigISetIgnoreAction : SIG_IGN for signal 20
[Thr  1] JLaunchCloseProgram: good bye (exitcode = -2)

There are no logs created for server0.Plz suggest

JPReyes
Active Contributor
0 Kudos

Ok, Do you have SAP JVM installed in the box?... did you corrected the JAVA path on instance parameters and on configtool, SDM?

Regards, Juan

Former Member
0 Kudos

Yes Juan ,we have SAPJVM installed on Q box,i have changed the java path in instance profile,in configtool it was already pointing to /usr/java.

JPReyes
Active Contributor
0 Kudos

Are you sure that the correct path?

It should be something more like /usr/sap/<SID>/<INSTANCE>/exe/sapjvm_4

If your production system is working fine, you can compare setting with it

Regards, Juan

Former Member
0 Kudos

Yes that is the path it is pointing to , in production where we have migrated to SAP JVM ,config tool is pointing to usr/sap/<SID>/<INSTANCE>/exe/sapjvm_4.

We did our system copy giving java path as /usr/java.I am using the instance profile that wa created after system copy, java should be up , but it throws the above mentioned error

JPReyes
Active Contributor
0 Kudos

[Thr 772] *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("libjvm.so") FAILED

  "Could not load module .

System error: No such file or directory"  (errno=2,No such file or directory) [dlux_mt.c    445]

Well this basically points that the system is looking into the wrong path. You need to make sure your parameters and settings in configtool, SDM, etc are pointing to the right path

Also you can check some of the recommendations on,

Note 1611326 - Patching the SAP JVM 4.1 manually for NetWeaver 2004 and 7.0

Regards, Juan

Haroon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sabya,

Also see the below note :

Note 1522198  How to manually configure an AS Java to use SAP JVM 4.1

You have to check the step 5,6,7,8 & 9 to verify JVM setting are done properly.

Also check the note:

Note:

743583    How to change the JDK of SDM
718901 How to Change the JDK of the J2EE Engine

All these note will help you to resolve the issue.Feedback pls.

Thanks

Haroon Rasheed

AGS

Former Member
0 Kudos

Check you environment variables for <sid>adm user. You need to adjust JAVA_HOME and PATH variables to point to SAP JVM. After that you need to delete -Xj9 option that is used by IBM JVM.

Answers (0)