Due to a JDK bug, JavaWebServer locks up if the DNS lookup option is enabled for logs.
This is of course on green_threads.
The following is a pstack that shows the server hung in the dns lookup part of InetAddress:
246: java -Dserver.root=/export/home2/website/jws -Duser.keystore=/export/h
ef4dcfd0 nss_get_backend_u (eccff2cc, 1efca8, 0, 1f05c0, 0, ef51316c) + 64
ef4dd844 nss_search (0, ef5a587c, 5, eccff2e8, 0, 2) + b8
ef5b2dc4 _switch_gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + 50
ef5b2108 _door_gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + ac
ef5b29b8 _get_hostserv_inetnetdir_byaddr (ef5f6e74, ecd01478, ecd01470, ef4f3b64, 0, 0) + 138
ef5b1af8 gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + 74
ef183e9c java_net_InetAddressImpl_getHostByAddr (ed648928, 948e0159, ef730ea8, ecd0190c, 1, 0) + 2c
ef186728 Java_java_net_InetAddressImpl_getHostByAddr_stub (217be4, 217be0, ef728c00, ef729420, 3b627f1e, 1e) + 10
ef6d1bc8 invokeNativeMethod (217bac, 10e22c, 217be0, ecd01ca4, ef6d1730, 4) + 64
ef7108e0 ExecuteJava (112efb, ecd01ca4, 217be0, 217ba0, 111818, 217bac) + 7e0
ef6e1680 do_execute_java_method_vararg (ecd01ca4, ef72e6b5, 0, 0, 0, 2179e0) + 5d8
ef6e0d24 execute_java_dynamic_method (ecd01ca4, ed630970, ef72e6b0, ef72e6b4, ef730c00, 0) + 30
ef6faad0 ThreadRT0 (ed630970, ef72e6b4, 0, 0, 0, 0) + 58
ef70f0d8 start_func (ef717400, ed630970, ef6faa78, 0, 0, 0) + 10
00000000 ???????? (0, 0, 0, 0, 0, 0)
This is of course on green_threads.
The following is a pstack that shows the server hung in the dns lookup part of InetAddress:
246: java -Dserver.root=/export/home2/website/jws -Duser.keystore=/export/h
ef4dcfd0 nss_get_backend_u (eccff2cc, 1efca8, 0, 1f05c0, 0, ef51316c) + 64
ef4dd844 nss_search (0, ef5a587c, 5, eccff2e8, 0, 2) + b8
ef5b2dc4 _switch_gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + 50
ef5b2108 _door_gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + ac
ef5b29b8 _get_hostserv_inetnetdir_byaddr (ef5f6e74, ecd01478, ecd01470, ef4f3b64, 0, 0) + 138
ef5b1af8 gethostbyaddr_r (ecd01958, 4, 2, ecd018f8, ecd014f8, 400) + 74
ef183e9c java_net_InetAddressImpl_getHostByAddr (ed648928, 948e0159, ef730ea8, ecd0190c, 1, 0) + 2c
ef186728 Java_java_net_InetAddressImpl_getHostByAddr_stub (217be4, 217be0, ef728c00, ef729420, 3b627f1e, 1e) + 10
ef6d1bc8 invokeNativeMethod (217bac, 10e22c, 217be0, ecd01ca4, ef6d1730, 4) + 64
ef7108e0 ExecuteJava (112efb, ecd01ca4, 217be0, 217ba0, 111818, 217bac) + 7e0
ef6e1680 do_execute_java_method_vararg (ecd01ca4, ef72e6b5, 0, 0, 0, 2179e0) + 5d8
ef6e0d24 execute_java_dynamic_method (ecd01ca4, ed630970, ef72e6b0, ef72e6b4, ef730c00, 0) + 30
ef6faad0 ThreadRT0 (ed630970, ef72e6b4, 0, 0, 0, 0) + 58
ef70f0d8 start_func (ef717400, ed630970, ef6faa78, 0, 0, 0) + 10
00000000 ???????? (0, 0, 0, 0, 0, 0)
- duplicates
-
JDK-4089624 Broken DNS causes all threads to hang
- Closed