Mantis - Resin
Viewing Issue Advanced Details
1344 minor always 09-12-06 09:17 09-20-06 16:46
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.0.22  
0001344: JNI crash in select manager
(rep by Olaf Jentsch)

It's impossible to run Resin with Server-JVM, because after a few hours it
crash writing the following log file hs_err_pid2564.log (see below).

Maybe this issue has something to do with this bug reported some days ago?
http://bugs.caucho.com/view.php?id=1318 [^]

Hopefully it helps to find the bug and don't bring more confusion ;-)

Olaf Jentsch

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00bb17f4, pid=2564,
tid=2724 # # Java VM: Java HotSpot(TM) Server VM (1.4.2_11-b06 mixed mode) #
Problematic frame:
# J com.caucho.server.port.JniSelectManager.selectNative(JJ)I
#

--------------- T H R E A D ---------------

Current thread (0x03f2de80): JavaThread "resin-select-manager" daemon
[_thread_in_native, id=2724]

siginfo: ExceptionCode=0xc0000005, writing address 0x00001450

Registers:
EAX=0xffffffff, EBX=0x00001388, ECX=0x0551fba8, EDX=0x7ffe0304
ESP=0x0551fbd8, EBP=0x03f2df1c, ESI=0x109a38c0, EDI=0x03f2de80
EIP=0x00bb17f4, EFLAGS=0x00010216

Top of Stack: (sp=0x0551fbd8)
0x0551fbd8: 053e0050 053e006c 053e806c 00000001
0x0551fbe8: 03f2df1c 00bb17e9 03f2df1c 0551fc08
0x0551fbf8: 053e0050 00000000 00001388 00000000
0x0551fc08: 109a38c0 109a38c0 ffffffff 00000000
0x0551fc18: 03f2de80 00037150 0000000c 00bb48b8
0x0551fc28: 053e0050 00000000 00001388 00000000
0x0551fc38: 0551fc84 080d671d 03f2de80 00000006
0x0551fc48: 00000000 00000000 0000ea60 00000000

Instructions: (pc=0x00bb17f4)
0x00bb17e4: e8 e7 06 2c 04 83 ec 18 89 44 24 38 8b 5c 24 28
0x00bb17f4: c7 83 c8 00 00 00 05 00 00 00 0f ae f0 8b 1d ac


Stack: [0x054e0000,0x05520000), sp=0x0551fbd8, free space=254k Native
frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J
com.caucho.server.port.JniSelectManager.selectNative(JJ)I

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J
com.caucho.server.port.JniSelectManager.selectNative(JJ)I
J com.caucho.server.port.JniSelectManager.run()V
v ~OSRAdapter
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
  0x0424ce60 JavaThread "resin-65" daemon [_thread_blocked, id=3392]
  0x04757e88 JavaThread "resin-64" daemon [_thread_blocked, id=5980]
  0x042c8e80 JavaThread "resin-63" daemon [_thread_blocked, id=5172]
  0x044d3570 JavaThread "resin-62" daemon [_thread_blocked, id=4028]
  0x04204d90 JavaThread "resin-61" daemon [_thread_blocked, id=5508]
  0x03e29b50 JavaThread "resin-tcp-connection-*:80-35" daemon
[_thread_blocked, id=2968]
  0x042f8618 JavaThread "resin-59" daemon [_thread_blocked, id=5888]
  0x0471c808 JavaThread "resin-58" daemon [_thread_blocked, id=5892]
  0x045133f8 JavaThread "resin-57" daemon [_thread_blocked, id=5812]
  0x03dd94a8 JavaThread "resin-tcp-connection-*:80-11" daemon
[_thread_blocked, id=5764]
  0x0451b408 JavaThread "resin-tcp-connection-*:80-41" daemon
[_thread_blocked, id=5060]
  0x03ecd408 JavaThread "resin-51" daemon [_thread_blocked, id=5064]
  0x049abe08 JavaThread "resin-50" daemon [_thread_blocked, id=1260]
  0x042f8ea0 JavaThread "resin-tcp-connection-*:80-5" daemon
[_thread_blocked, id=3188]
  0x03f2e230 JavaThread "resin-tcp-connection-*:80-25" daemon
[_thread_in_native, id=5844]
  0x03f2e638 JavaThread "resin-tcp-connection-*:80-39" daemon
[_thread_blocked, id=5840]
  0x03e25950 JavaThread "resin-45" daemon [_thread_blocked, id=5836]
  0x046e0e80 JavaThread "resin-44" daemon [_thread_blocked, id=5460]
  0x046e0c80 JavaThread "resin-43" daemon [_thread_blocked, id=5360]
  0x044fb550 JavaThread "resin-42" daemon [_thread_blocked, id=5356]
  0x04524408 JavaThread "resin-41" daemon [_thread_blocked, id=5312]
  0x0486cde0 JavaThread "resin-tcp-connection-*:80-33" daemon
[_thread_blocked, id=5308]
  0x0486cc78 JavaThread "resin-39" daemon [_thread_blocked, id=5304]
  0x03e76d50 JavaThread "resin-tcp-connection-*:80-13" daemon
[_thread_blocked, id=5280]
  0x03d88aa8 JavaThread "resin-36" daemon [_thread_blocked, id=5276]
  0x03ec6570 JavaThread "resin-tcp-connection-*:80-23" daemon
[_thread_blocked, id=2576]
  0x03ec6408 JavaThread "resin-tcp-connection-*:80-21" daemon
[_thread_blocked, id=2904]
  0x04204c28 JavaThread "resin-32" daemon [_thread_blocked, id=2784]
  0x042abb70 JavaThread "resin-31" daemon [_thread_blocked, id=2800]
  0x049abca0 JavaThread "resin-29" daemon [_thread_blocked, id=2628]
  0x04964988 JavaThread "resin-28" daemon [_thread_blocked, id=2740]
  0x04a25e60 JavaThread "resin-26" daemon [_thread_blocked, id=2748]
  0x049b3008 JavaThread "resin-port-80" daemon [_thread_blocked, id=2752]
=>0x03f2de80 JavaThread "resin-select-manager" daemon [_thread_in_native,
id=2724]
  0x041b9dc0 JavaThread "resin-ping" daemon [_thread_blocked, id=2648]
  0x03ee1878 JavaThread "resin-25" daemon [_thread_blocked, id=2760]
  0x03e2c9f0 JavaThread "resin-24" daemon [_thread_blocked, id=2768]
  0x041d0c20 JavaThread "resin-23" daemon [_thread_blocked, id=2704]
  0x041d0920 JavaThread "resin-21" daemon [_thread_blocked, id=2608]
  0x04375df0 JavaThread "resin-20" daemon [_thread_blocked, id=2728]
  0x03e24d30 JavaThread "resin-17" daemon [_thread_blocked, id=2660]
  0x03f2e9a8 JavaThread "resin-13" daemon [_thread_blocked, id=2700]
  0x042f88e0 JavaThread "resin-9" daemon [_thread_blocked, id=2584]
  0x03dd0b60 JavaThread "resin-thread-scheduler" daemon [_thread_blocked,
id=2616]
  0x03e00a68 JavaThread "resin-thread-launcher" daemon [_thread_blocked,
id=2612]
  0x03e1bc88 JavaThread "resin-alarm" daemon [_thread_blocked, id=2568]
  0x00a3b618 JavaThread "CompilerThread1" daemon [_thread_blocked, id=2540]
  0x00a3a5d0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2600]
  0x00a39890 JavaThread "AdapterThread" daemon [_thread_blocked, id=592]
  0x0003fb98 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=2592]
  0x009d06e0 JavaThread "Finalizer" daemon [_thread_blocked, id=2580]
  0x009cfb50 JavaThread "Reference Handler" daemon [_thread_blocked,
id=1060]
  0x00037ce0 JavaThread "main" [_thread_in_native, id=1508]

Other Threads:
  0x009cf240 VMThread [id=2572]
  0x00a3cec0 WatcherThread [id=2604]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation total 1344K, used 214K [0x10010000, 0x10180000,
0x10720000)
  eden space 1216K, 11% used [0x10010000, 0x10032eb0, 0x10140000)
  from space 128K, 58% used [0x10160000, 0x10172a38, 0x10180000)
  to space 128K, 0% used [0x10140000, 0x10140000, 0x10160000)
 tenured generation total 11236K, used 9211K [0x10720000, 0x11219000,
0x14010000)
   the space 11236K, 81% used [0x10720000, 0x1101ee80, 0x1101f000,
0x11219000) compacting perm gen total 16384K, used 8130K [0x14010000,
0x15010000, 0x18010000)
   the space 16384K, 49% used [0x14010000, 0x148009b0, 0x14800a00,
0x15010000)

Dynamic libraries:
0x00400000 - 0x0040b000 c:\Programme\j2sdk1.4.2_11\bin\java.exe
0x77f30000 - 0x77ff0000 C:\WINDOWS\system32\ntdll.dll
0x77e20000 - 0x77f27000 C:\WINDOWS\system32\kernel32.dll
0x77d70000 - 0x77e10000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c20000 - 0x77cc5000 C:\WINDOWS\system32\RPCRT4.dll
0x77b70000 - 0x77bc4000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x082b8000
c:\Programme\j2sdk1.4.2_11\jre\bin\server\jvm.dll
0x77cd0000 - 0x77d60000 C:\WINDOWS\system32\USER32.dll
0x77bd0000 - 0x77c14000 C:\WINDOWS\system32\GDI32.dll
0x76990000 - 0x769bd000 C:\WINDOWS\system32\WINMM.dll
0x719d0000 - 0x719d8000 C:\WINDOWS\system32\rdpsnd.dll
0x76150000 - 0x76160000 C:\WINDOWS\system32\WINSTA.dll
0x71a50000 - 0x71aa3000 C:\WINDOWS\system32\NETAPI32.dll
0x76a60000 - 0x76a6b000 C:\WINDOWS\system32\PSAPI.DLL
0x10000000 - 0x10007000 c:\Programme\j2sdk1.4.2_11\jre\bin\hpi.dll
0x00390000 - 0x0039e000
c:\Programme\j2sdk1.4.2_11\jre\bin\verify.dll
0x003b0000 - 0x003c9000 c:\Programme\j2sdk1.4.2_11\jre\bin\java.dll
0x003d0000 - 0x003de000 c:\Programme\j2sdk1.4.2_11\jre\bin\zip.dll
0x04d80000 - 0x04d8f000 C:\Programme\j2sdk1.4.2_11\jre\bin\net.dll
0x71a10000 - 0x71a28000 C:\WINDOWS\system32\WS2_32.dll
0x71a00000 - 0x71a08000 C:\WINDOWS\system32\WS2HELP.dll
0x71930000 - 0x71974000 C:\WINDOWS\system32\mswsock.dll
0x718f0000 - 0x718f8000 C:\WINDOWS\System32\wshtcpip.dll
0x76dc0000 - 0x76de8000 C:\WINDOWS\system32\DNSAPI.dll
0x76e60000 - 0x76e67000 C:\WINDOWS\System32\winrnr.dll
0x76e00000 - 0x76e30000 C:\WINDOWS\system32\WLDAP32.dll
0x76e70000 - 0x76e75000 C:\WINDOWS\system32\rasadhlp.dll
0x04e70000 - 0x04e86000 C:\WINDOWS\system32\resin.dll
0x05520000 - 0x0552e000 C:\Resin\resin-pro-3.0.21\win32\resin_os.dll
0x04ea0000 - 0x04ea8000 C:\Programme\j2sdk1.4.2_11\jre\bin\nio.dll

VM Arguments:
jvm_args: -Dresin.home=c:\Resin\resin-pro-3.0.21
-Dserver.root=c:\Resin\resin-pro-3.0.21
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
-Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl
java_command: com.caucho.server.resin.Resin -server frontend -conf
c://Resin//resin-pro-3.0.21//conf//resin_iis.conf [^] -socketwait 1417 Launcher
Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=c:\Programme\j2sdk1.4.2_11
CLASSPATH=c:\Resin\resin-pro-3.0.21\classes;c:\Resin\resin-pro-3.0.21\lib\re
sin.jar;c:\Programme\j2sdk1.4.2_11\lib\tools.jar;c:\Programme\j2sdk1.4.2_11\
jre\lib\rt.jar;c:\Resin\resin-pro-3.0.21\lib\activation.jar;c:\Resin\resin-p
ro-3.0.21\lib\aopalliance.jar;c:\Resin\resin-pro-3.0.21\lib\eclipse-compiler
.jar;c:\Resin\resin-pro-3.0.21\lib\ejb-20.jar;c:\Resin\resin-pro-3.0.21\lib\
ejb-30.jar;c:\Resin\resin-pro-3.0.21\lib\j2ee-deploy-10.jar;c:\Resin\resin-p
ro-3.0.21\lib\j2ee-management-10.jar;c:\Resin\resin-pro-3.0.21\lib\javamail-
14.jar;c:\Resin\resin-pro-3.0.21\lib\jca-15.jar;c:\Resin\resin-pro-3.0.21\li
b\jms-11.jar;c:\Resin\resin-pro-3.0.21\lib\jmx-12.jar;c:\Resin\resin-pro-3.0
.21\lib\jsdk-24.jar;c:\Resin\resin-pro-3.0.21\lib\jstl-11.jar;c:\Resin\resin
-pro-3.0.21\lib\jta-101.jar;c:\Resin\resin-pro-3.0.21\lib\license.jar;c:\Res
in\resin-pro-3.0.21\lib\portlet-10.jar;c:\Resin\resin-pro-3.0.21\lib\pro.jar
;c:\Resin\resin-pro-3.0.21\lib\quercus.jar;c:\Resin\resin-pro-3.0.21\lib\res
in-jdk15.jar;c:\Resin\resin-pro-3.0.21\lib\resinboot.jar;c:\Resin\resin-pro-
3.0.21\lib\script-10.jar;c:\Resin\resin-pro-3.0.21\lib\webutil.jar
PATH=c:\Programme\j2sdk1.4.2_11\bin;C:\oracle\ora92\bin;C:\Programme\Oracle\
jre\1.3.1\bin;C:\Programme\Oracle\jre\1.1.8\bin;c:\Perl\bin\;C:\WINDOWS\syst
em32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Resin\resin-pro-3.0.21\bin;c:\Re
sin\resin-pro-3.0.21\win32;\openssl\bin
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 5, GenuineIntel


--------------- S Y S T E M ---------------

OS: Windows Server 2003 family Build 3790

CPU:total 4 family 15, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 2096432k(754968k free), swap 4194303k(3026064k
free)

vm_info: Java HotSpot(TM) Server VM (1.4.2_11-b06) for windows-x86, built on
Feb 13 2006 10:02:05 by "java_re" with MS VC++ 6.0

Notes
(0001525)
ferg   
09-20-06 16:46   
windows select manager has a vew low limit of sockets (64). For windows, threading works better for keepalives. Therefore it has been disabled.