How to Find the SAP JVM Directory Used by AS Java

When an AS Java system contains several SAP JVM installations, checking the version returned by the shell’s java command can be misleading. The Java startup framework may use a different installation.

Check the instance profile

Inspect the profile of the affected Java instance in the SAP profile directory. SAP documents jstart/vm/home (jstartup/vm/home on older releases) as the Java SDK location. Its default may refer to DIR_SAPJVM rather than an absolute path.

grep -Ei 'DIR_SAPJVM|jstart/vm/home|jstartup/vm/home' /usr/sap/SID/SYS/profile/SID_INSTANCE_HOST

Replace the profile path with the actual file. Check referenced profile variables and the default profile, not just explicit entries in the instance profile. Confirm the resolved value against the Java startup logs and process configuration.

Verify the JVM version

Once you have confirmed the correct installation directory, run the java executable from that directory, using an authorized OS account.

/path/to/confirmed/jvm/bin/java -version

This is a read-only check. Do not replace JVM files in a running AS Java instance or change profile parameters solely because another Java version is installed on the server.

SAP Help: SAP Profile Parameters

SAP Note: 3724455 (related topic).

You May Also Like

Leave a Reply?