Never heard back from anyone, and I'm left assuming this is a bug, albeit a
difficult one to isolate.

We did try a less intrusive workaround by using a timeout on the Shutdown
tab in Tomcat properties, to no avail.

I guess we'll stick with the less elegant workaround, simply killing
tomcat6.exe process if net stop fails, unless anyone can think of something
else to try.

-----Original Message-----
From: Matt Sullivan [mailto:mjdsulli...@hotmail.com] 
Sent: Friday, June 19, 2009 5:05 PM
To: 'Tomcat Users List'
Subject: RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)

> Ok, rules that out.  Do any of your webapps make use of JNI?  Might want
to use Process Explorer to see what's still going on inside Tomcat.
> 
>  - Chuck

No JNI.

The process dump immediately below shows JVM still loaded, etc.  I then
drill into some of the threads via Process Explorer further down.  Sorry for
length of this post, not sure what would help / not help, but I didn't spot
anything obvious...

1548 tomcat6.exe     
   CWD:     C:\Program Files\Apache Software Foundation\Tomcat 6.0\
   CmdLine: "C:\Program Files\Apache Software Foundation\Tomcat
6.0\bin\tomcat6.exe" //RS//Tomcat6
   VirtualSize:   2079048 KB   PeakVirtualSize:   2088660 KB
   WorkingSetSize:817876 KB   PeakWorkingSetSize:818400 KB
   NumberOfThreads: 34
   4740 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2548 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   1124 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   5936 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6004 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   7148 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   4880 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   7152 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   5764 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2320 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   4820 Win32StartAddr:0x00000000 LastErr:0x00000057 State:Waiting   
   5604 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   5572 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6996 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6992 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6916 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   7004 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   7016 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6900 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   1212 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   4584 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   4764 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2592 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   7144 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   1864 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6692 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2944 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   5588 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   1464 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2604 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   6388 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   2116 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   1984 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting   
   5716 Win32StartAddr:0x00000000 LastErr:0x00000057 State:Waiting   
        2.0.4.0 shp  0x0000000000400000  C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin\tomcat6.exe
 6.0.6001.18000 shp  0x00000000773F0000  C:\Windows\system32\ntdll.dll
 6.0.6001.18215 shp  0x00000000771F0000  C:\Windows\system32\kernel32.dll
 6.0.6001.18000 shp  0x0000000077320000  C:\Windows\system32\USER32.dll
 6.0.6001.18159 shp  0x000007FEFF180000  C:\Windows\system32\GDI32.dll
 6.0.6001.22181 shp  0x000007FEFF400000  C:\Windows\system32\ADVAPI32.dll
 6.0.6001.18247 shp  0x000007FEFDF60000  C:\Windows\system32\RPCRT4.dll
 7.0.6001.18000 shp  0x000007FEFE100000  C:\Windows\system32\msvcrt.dll
 6.0.6001.18167 shp  0x000007FEFE520000  C:\Windows\system32\SHELL32.dll
 6.0.6001.18000 shp  0x000007FEFDB40000  C:\Windows\system32\SHLWAPI.dll
 6.0.6001.18000 shp  0x000007FEFDF30000  C:\Windows\system32\IMM32.DLL
 6.0.6001.18000 shp  0x000007FEFF240000  C:\Windows\system32\MSCTF.dll
 6.0.6001.18000 shp  0x000007FEFDC20000  C:\Windows\system32\LPK.DLL
 1.626.6001.18000 s  0x000007FEFE480000  C:\Windows\system32\USP10.dll
 6.10.6001.18000 sh  0x000007FEFC240000
C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6
.0.6001.18000_none_152e7382f3bd50c6\comctl32.dll
      14.0.0.16 shp  0x000000006D890000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\server\jvm.dll
 6.0.6001.18000 shp  0x000007FEFBA30000  C:\Windows\system32\WINMM.dll
 6.0.6001.18000 shp  0x000007FEFF510000  C:\Windows\system32\ole32.dll
 6.0.6001.18000 shp  0x000007FEFE3A0000  C:\Windows\system32\OLEAUT32.dll
     4.2.5406.0 shp  0x000007FEFB920000  C:\Windows\system32\OLEACC.dll
      6.0.140.8 shp  0x000000006D800000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\verify.dll
      6.0.140.8 shp  0x000000006D450000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\java.dll
      6.0.140.8 shp  0x000000006D3B0000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\hpi.dll
 6.0.6001.18000 shp  0x0000000077570000  C:\Windows\system32\PSAPI.DLL
      6.0.140.8 shp  0x000000006D4C0000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\jdwp.dll
      6.0.140.8 shp  0x000000006D6D0000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\npt.dll
      6.0.140.8 shp  0x000000006D850000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\zip.dll
 6.0.6001.18000 shp  0x000007FEFE1A0000  C:\Windows\system32\SETUPAPI.dll
      6.0.140.8 shp  0x000000006D310000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\dt_socket.dll
 6.0.6001.18000 shp  0x000007FEFF1F0000  C:\Windows\system32\WS2_32.dll
 6.0.6001.18000 shp  0x000007FEFF3F0000  C:\Windows\system32\NSI.dll
   4.0.3442.654 shp  0x0000000155600000  C:\Program Files (x86)\Microsoft
Firewall Client 2004\FwcWsp64.dll
 6.0.6001.18000 shp  0x000007FEFCEB0000  C:\Windows\system32\mswsock.dll
 6.0.6001.18000 shp  0x000007FEFCA10000  C:\Windows\system32\wshtcpip.dll
      6.0.140.8 shp  0x000000006D6A0000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\net.dll
 6.0.6001.18000 shp  0x000007FEFD050000  C:\Windows\System32\wship6.dll
 6.0.6001.18000 shp  0x000007FEFD430000  C:\Windows\system32\DNSAPI.dll
 6.0.6001.18000 shp  0x000007FEFBA10000  C:\Windows\System32\winrnr.dll
 6.0.6001.18000 shp  0x000007FEFDBC0000  C:\Windows\system32\WLDAP32.dll
 6.0.6001.18000 shp  0x000007FEFC930000  C:\Windows\system32\NLAapi.dll
 6.0.6001.18000 shp  0x000007FEFD160000  C:\Windows\system32\IPHLPAPI.DLL
 6.0.6001.18000 shp  0x000007FEFD110000  C:\Windows\system32\dhcpcsvc.DLL
 6.0.6001.18215 shp  0x000007FEFD990000  C:\Windows\system32\Secur32.dll
 6.0.6001.18000 shp  0x000007FEFD340000  C:\Windows\system32\WINNSI.DLL
 6.0.6001.18000 shp  0x000007FEFD0E0000  C:\Windows\system32\dhcpcsvc6.DLL
 6.0.6001.18000 shp  0x000007FEFB8C0000  C:\Windows\system32\napinsp.dll
 6.0.6001.18000 shp  0x000007FEFBA20000  C:\Windows\system32\rasadhlp.dll
 6.0.6001.18000 shp  0x000007FEFCC20000  C:\Windows\system32\rsaenh.dll
 6.0.6001.18000 shp  0x000007FEFD9B0000  C:\Windows\system32\USERENV.dll
   2.0.1803.100 shp  0x0000000073CC0000  C:\Program
Files\Java\jdk1.6.0_14\jre\bin\sqljdbc_auth.dll
 6.0.6001.18000 shp  0x000007FEFD200000  C:\Windows\system32\CRYPT32.dll
 6.0.6001.18000 shp  0x000007FEFD3F0000  C:\Windows\system32\MSASN1.dll
 6.0.6001.18000 shp  0x000007FEFD070000  C:\Windows\system32\credssp.dll
 6.0.6001.18175 shp  0x000007FEFCC70000  C:\Windows\system32\schannel.dll
 6.0.6001.18157 shp  0x000007FEFD4B0000  C:\Windows\system32\NETAPI32.dll
 6.0.6001.18000 shp  0x000007FEFCF00000  C:\Windows\system32\kerberos.dll
 6.0.6001.18000 shp  0x000007FEFD470000  C:\Windows\system32\cryptdll.dll
 6.0.6001.18000 shp  0x000007FEFD000000  C:\Windows\system32\msv1_0.dll
 6.0.6001.18000 shp  0x000007FEFD3C0000  C:\Windows\system32\ntdsapi.dll


----
All threads are Wait:UserRequest except for the 3 below.  Thread stacks for
each is included via Process Explorer.

TID 7016 in Wait:DelayExecution, stack:
ntoskrnl.exe!ExpInterlockedFlushSList+0x126f
ntoskrnl.exe!KeWaitForMultipleObjects+0xcca
ntoskrnl.exe!KeWaitForMutexObject+0x2da
ntoskrnl.exe!_misaligned_access+0x35
ntoskrnl.exe!MmUnlockPages+0x1160
ntoskrnl.exe!KeWaitForMultipleObjects+0xe61
ntoskrnl.exe!KeWaitForMutexObject+0x2da
ntoskrnl.exe!ProbeForWrite+0x733
ntoskrnl.exe!NtReadFile+0x5ff
ntoskrnl.exe!ZwUnloadKeyEx+0x20d3
ntdll.dll!NtReadFile+0xa
kernel32.dll!ReadFile+0x8a
ADVAPI32.dll!SetServiceStatus+0x436
ADVAPI32.dll!SetServiceStatus+0x1e3
ADVAPI32.dll!I_ScPnPGetServiceName+0x111
tomcat6.exe+0x3a27
tomcat6.exe+0x3c35
tomcat6.exe+0xc311
kernel32.dll!BaseThreadInitThunk+0xd
ntdll.dll!RtlUserThreadStart+0x21

TID 6596 in Wait:WrQueue, stack:
ntoskrnl.exe!ExpInterlockedFlushSList+0x126f
ntoskrnl.exe!KeWaitForMultipleObjects+0xcca
ntoskrnl.exe!KeWaitForMutexObject+0x2da
ntoskrnl.exe!_misaligned_access+0x35
ntoskrnl.exe!MmUnlockPages+0x1160
ntoskrnl.exe!KeWaitForMultipleObjects+0xe61
ntoskrnl.exe!KeRemoveQueueEx+0x4fe
ntoskrnl.exe!ObReferenceObjectByHandle+0x3f7
ntoskrnl.exe!FsRtlIncrementCcFastReadWait+0x58d
ntoskrnl.exe!ZwUnloadKeyEx+0x20d3
ntdll.dll!ZwRemoveIoCompletion+0xa
mswsock.dll+0x5a5d
kernel32.dll!BaseThreadInitThunk+0xd
ntdll.dll!RtlUserThreadStart+0x21

TID 4740 in Wait:Execute, stack:
ntoskrnl.exe!ExpInterlockedFlushSList+0x126f
ntoskrnl.exe!KeWaitForMultipleObjects+0xcca
ntoskrnl.exe!KeWaitForMutexObject+0x2da
ntoskrnl.exe!_misaligned_access+0x35
ntoskrnl.exe!MmUnlockPages+0x1160
ntoskrnl.exe!KeWaitForMultipleObjects+0xe61
ntoskrnl.exe!KeWaitForMutexObject+0x2da
ntoskrnl.exe!ProbeForWrite+0x733
ntoskrnl.exe!NtReadFile+0x5ff
ntoskrnl.exe!ZwUnloadKeyEx+0x20d3
ntdll.dll!NtReadFile+0xa
kernel32.dll!ReadFile+0x8a
ADVAPI32.dll!SetServiceStatus+0x436
ADVAPI32.dll!SetServiceStatus+0x1e3
ADVAPI32.dll!I_ScPnPGetServiceName+0x111
tomcat6.exe+0x3a27
tomcat6.exe+0x3c35
tomcat6.exe+0xc311
kernel32.dll!BaseThreadInitThunk+0xd
ntdll.dll!RtlUserThreadStart+0x21


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to