SAP Basis Online Trainings
Very slow start of the j2ee engine on AIX with 64bit IBM JDK
Symptom
- Start of the j2ee engine on AIX with 64-bit IBM jdk is very long (more than 1/2 hour), a lot of services time out. Thread dumps of the server node show one or two running threads which are executing some method of the class Inet6AddressImpl like:
XXXSTACKTRACE at java.net.Inet6AddressImpl.getLocalHostName(Native Method)
or
XXXSTACKTRACE at java.net.lookupAllHostAddr.getLocalHostName(Native Method)
......
or other methods of the class Inet6AddressImpl.
Reason and Prerequisites The reason is that the engine needs to run with Internet protocol version 4 (IPv4), but the IBM 64-bit JDK for AIX, v1.4 uses the IPv6 extensions to the TCP/IP protocol by default.
Solution
I. Change server node's settings Add to the server node JVM settings the following parameter: -Djava.net.preferIPv4Stack=true and restart the engine.
II. Change SDM node's settings If the deployment via SDM is also slow you should add this parameter to the SDM JVM properties. To do so you have to edit 2 files:
1. All SPs: In /usr/sap/<SID>/<instanceID>/SDM/program/config/sdm_jstartup.properties
Replace the line sdm.JavaParameters= with sdm.JavaParameters=-Djava.net.preferIPv4Stack=true
2.1.NW04 SP18 and lower or NW04s SP9 and lower: In /usr/sap/<SID>/<instanceID>/SDM/program/sdm_prep_com.sh Change the line sdm_com="$sdm_com -jar '/usr/sap/<SID>/<instanceID>/SDM/program/bin/SDM.jar'" to sdm_com="$sdm_com -Djava.net.preferIPv4Stack=true -jar '/usr/sap/<SID>/<instanceID>/SDM/program/bin/SDM.jar'" (It must be on one line)
2.2. NW04 SP19 and newer or NW04s SP10 and newer: In the file /usr/sap/<SID>/<instanceID>/SDM/program/sdm_jdk.sh replace the line sdm_java_params= with the line sdm_java_params=-Djava.net.preferIPv4Stack=true
III. Change dispatcher node's settings Add to the dispatcher node JVM settings the following parameter: -Djava.net.preferIPv4Stack=true and restart the engine.
For more info please review the SAP Note - Note 861333 - Very slow start of the j2ee engine on AIX with 64bit IBM JDK
- "Java processes of instance Y35/JC00 [Java: UNKNOWN] did not reach state PARTRUNNING after 20:40 minutes. Giving up." message occurs during Installation.
Reason and Prerequisites The reason is that the engine needs to run with Internet protocol version 4 (IPv4), but the IBM 64-bit JDK for AIX, v1.4 uses the IPv6 extensions to the TCP/IP protocol by default.
Solution
I. Change server node's settings Add to the server node JVM settings the following parameter: -Djava.net.preferIPv4Stack=true and restart the engine.
II. Change SDM node's settings If the deployment via SDM is also slow you should add this parameter to the SDM JVM properties. To do so you have to edit 2 files:
1. All SPs: In /usr/sap/<SID>/<instanceID>/SDM/program/config/sdm_jstartup.properties
Replace the line sdm.JavaParameters= with sdm.JavaParameters=-Djava.net.preferIPv4Stack=true
2.1.NW04 SP18 and lower or NW04s SP9 and lower: In /usr/sap/<SID>/<instanceID>/SDM/program/sdm_prep_com.sh Change the line sdm_com="$sdm_com -jar '/usr/sap/<SID>/<instanceID>/SDM/program/bin/SDM.jar'" to sdm_com="$sdm_com -Djava.net.preferIPv4Stack=true -jar '/usr/sap/<SID>/<instanceID>/SDM/program/bin/SDM.jar'" (It must be on one line)
2.2. NW04 SP19 and newer or NW04s SP10 and newer: In the file /usr/sap/<SID>/<instanceID>/SDM/program/sdm_jdk.sh replace the line sdm_java_params= with the line sdm_java_params=-Djava.net.preferIPv4Stack=true
III. Change dispatcher node's settings Add to the dispatcher node JVM settings the following parameter: -Djava.net.preferIPv4Stack=true and restart the engine.
For more info please review the SAP Note - Note 861333 - Very slow start of the j2ee engine on AIX with 64bit IBM JDK