w3wp randomly crashes when redirector is used
Hello I really hope someone can help me with this. I have been trying to figure it out for days and I am beginning to go mad! The issue I am having appears to be very similar to https://issues.apache.org/bugzilla/show_bug.cgi?id=45063. It might even be the same issue. Note I can recreate the problem on various flavours of Windows, and in IIS 6 IIS 7. Details of the issue: I have a web application which lives under the Default Web Site in IIS 6, and which has its own app pool. The redirector (isapi_redirect.dll 1.2.28) lives under the DefaultAppPool. The user would log into our web application (which uses our app pool) and everything works as expected. If he then uses functionality which uses the redirector (and the DefaultAppPool), w3wp.exe will probably crash. (I say probably because sometimes it works without error). Note everything works fine (i.e. there is no crash) if I run the DefaultAppPool as Local System; the problem only seems to exist if I run the DefaultAppPool as Local Service or Network Service. Details of the crash: In the Event Viewer I can see the following - Faulting application w3wp.exe, version 6.0.3790.3959, faulting module ntdll.dll, version 5.2.3790.4455, fault address 0x0004f053. And if I catch the crash using Debug Diagnostic Tool - Thread 5 - System ID 6140 Entry point w3tp!THREAD_MANAGER::ThreadManagerThread Create time 01/02/2010 13:13:26 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.15 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpWaitOnCriticalSection+c5 4b66d376 ntdll!RtlEnterCriticalSection+152 6a6ee4e8 6a6b9ae6 isapi_redirect!TerminateFilter+c24b 76bbcc54 isapi_redirect+9ae6 01459180 4b66d376 isapi_redirect!TerminateFilter+21435 1000 01b6dd18 isapi_redirect!HttpExtensionProc+29c 732448ee 73243b7a iisutil!STRU::STRU+c 73243b7a 0157e69c 7327a93f nativerd!CONFIG_ELEMENT::ReferenceConfigElement+f 000cf7f0 7327a970 nativerd!CONFIG_ELEMENT_LIST::GetMergedElement+483 73243e08 0157eaa8 0x0157e68c NTDLL!RTLPWAITONCRITICALSECTION+C5In w3wp__PID__5276__Date__02_01_2010__Time_01_13_27PM__226__Second_Chance_Excep tion_C005.dmp the assembly instruction at ntdll!RtlpWaitOnCriticalSection+c5 in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to write to memory location 0x0014 on thread 5 Module Information Image Name: C:\Windows\System32\ntdll.dll Base address: 0x76fc Checksum: 0x00135d86 COM DLL: False ISAPIExtension: False ISAPIFilter: False Managed DLL: False VB DLL: False Loaded Image Name: ntdll.dll Mapped Image Name: Module name: ntdll Single Threaded: False Module Size: 1.15 MBytes Symbol File Name: c:\symcache\ntdll.pdb\B958B2F91A5A46B889DAFAB4D140CF252\ntdll.pdb Symbol Type: PDB Time Stamp: Sat Jan 19 07:32:54 2008 Comments: Company Name: Microsoft Corporation File Description: NT Layer DLL File Version: 6.0.6001.18000 (longhorn_rtm.080118-1840) Internal Name: ntdll.dll Legal Copyright: C Microsoft Corporation. All rights reserved. Legal Trademarks: Original filename: ntdll.dll Private Build: Product Name: MicrosoftR WindowsR Operating System Product Version: 6.0.6001.18000 Special Build: There is nothing obvious in Process Monitor which explains what is causing the error. Do any of you have any ideas what could be causing this? Any advice would be greatly appreciated. Cheers Steve
RE: w3wp randomly crashes when redirector is used
Thanks for the reply. My issue is due to Tomcat Connectors 1.2.28. Is there a more specific mailing list for such issues? The Tomcat Connectors website shows users@tomcat.apache.org as the mailing list. Cheers Steve -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 03 February 2010 20:44 To: Tomcat Users List Subject: Re: w3wp randomly crashes when redirector is used Hmmm. Are you sure that you are posting to the right list here ? Steve Ryan wrote: Hello I really hope someone can help me with this. I have been trying to figure it out for days and I am beginning to go mad! The issue I am having appears to be very similar to https://issues.apache.org/bugzilla/show_bug.cgi?id=45063. It might even be the same issue. Note I can recreate the problem on various flavours of Windows, and in IIS 6 IIS 7. Details of the issue: I have a web application which lives under the Default Web Site in IIS 6, and which has its own app pool. The redirector (isapi_redirect.dll 1.2.28) lives under the DefaultAppPool. The user would log into our web application (which uses our app pool) and everything works as expected. If he then uses functionality which uses the redirector (and the DefaultAppPool), w3wp.exe will probably crash. (I say probably because sometimes it works without error). Note everything works fine (i.e. there is no crash) if I run the DefaultAppPool as Local System; the problem only seems to exist if I run the DefaultAppPool as Local Service or Network Service. Details of the crash: In the Event Viewer I can see the following - Faulting application w3wp.exe, version 6.0.3790.3959, faulting module ntdll.dll, version 5.2.3790.4455, fault address 0x0004f053. And if I catch the crash using Debug Diagnostic Tool - Thread 5 - System ID 6140 Entry point w3tp!THREAD_MANAGER::ThreadManagerThread Create time 01/02/2010 13:13:26 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.15 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpWaitOnCriticalSection+c5 4b66d376 ntdll!RtlEnterCriticalSection+152 6a6ee4e8 6a6b9ae6 isapi_redirect!TerminateFilter+c24b 76bbcc54 isapi_redirect+9ae6 01459180 4b66d376 isapi_redirect!TerminateFilter+21435 1000 01b6dd18 isapi_redirect!HttpExtensionProc+29c 732448ee 73243b7a iisutil!STRU::STRU+c 73243b7a 0157e69c 7327a93f nativerd!CONFIG_ELEMENT::ReferenceConfigElement+f 000cf7f0 7327a970 nativerd!CONFIG_ELEMENT_LIST::GetMergedElement+483 73243e08 0157eaa8 0x0157e68c NTDLL!RTLPWAITONCRITICALSECTION+C5In w3wp__PID__5276__Date__02_01_2010__Time_01_13_27PM__226__Second_Chance_Excep tion_C005.dmp the assembly instruction at ntdll!RtlpWaitOnCriticalSection+c5 in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to write to memory location 0x0014 on thread 5 Module Information Image Name: C:\Windows\System32\ntdll.dll Base address: 0x76fc Checksum: 0x00135d86 COM DLL: False ISAPIExtension: False ISAPIFilter: False Managed DLL: False VB DLL: False Loaded Image Name: ntdll.dll Mapped Image Name: Module name: ntdll Single Threaded: False Module Size: 1.15 MBytes Symbol File Name: c:\symcache\ntdll.pdb\B958B2F91A5A46B889DAFAB4D140CF252\ntdll.pdb Symbol Type: PDB Time Stamp: Sat Jan 19 07:32:54 2008 Comments: Company Name: Microsoft Corporation File Description: NT Layer DLL File Version: 6.0.6001.18000 (longhorn_rtm.080118-1840) Internal Name: ntdll.dll Legal Copyright: C Microsoft Corporation. All rights reserved. Legal Trademarks: Original filename: ntdll.dll Private Build: Product Name: MicrosoftR WindowsR Operating System Product Version: 6.0.6001.18000 Special Build: There is nothing obvious in Process Monitor which explains what is causing the error. Do any of you have any ideas what could be causing this? Any advice would be greatly appreciated. Cheers Steve - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2665 - Release Date: 02/03/10 08:09:00 - To unsubscribe, e-mail: users
RE: w3wp randomly crashes when redirector is used
Hi Chuck Thanks for your reply. It is indeed a strange problem. The work around unfortunately causes a severe security risk (giving the DefaultAppPool the Local System identity is similar to running Apache as root) so it isn't really an option. If someone who works on the Tomcat Connectors project is reading this, do you think this might be the same issue as bug 45063? If so, do you have any sort of idea when 45063 might be looked at? Thanks again for taking the time to read respond to my e-mails. Cheers Steve -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 03 February 2010 21:47 To: Tomcat Users List Subject: RE: w3wp randomly crashes when redirector is used From: Steve Ryan [mailto:st...@acme.ie] Subject: RE: w3wp randomly crashes when redirector is used Is there a more specific mailing list for such issues? No, this is the proper mailing list. Unfortunately, the problem is sufficiently esoteric (as well as having a work-around) so you're not likely to get much response from the user community. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2665 - Release Date: 02/03/10 08:09:00 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: w3wp randomly crashes when redirector is used
Hi Andre Thanks for your reply. W3wp.exe is the process which manages the application pool where the redirector lives. I'm fairly confident the problem is due to the redirector because the crash only occurs when the redirector is used. Also, there is an open bug (45063) which appears to be a very similar issue. I do of course accept the problem could lie at Microsoft's door though. :) I guess I'm hoping someone has heard of this issue before, and knows of some sort of workaround which doesn't involve using the Local System account. Cheers Steve -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 03 February 2010 21:58 To: Tomcat Users List Subject: Re: w3wp randomly crashes when redirector is used Steve Ryan wrote: My issue is due to Tomcat Connectors 1.2.28. Is there a more specific mailing list for such issues? The Tomcat Connectors website shows users@tomcat.apache.org as the mailing list. No. If your issue is indeed due to the Windows version of the mod_jk connector, then you are on the correct list. I am far from the specialist on the Windows/jk side of things, but I am still puzzled however. According to your explanation below, the application which crashes is something called w3wp.exe. This does not really sound like an application which lives under Java and Tomcat. The jk redirector's function is to redirect (or rather proxy) some HTTP requests from IIS to a back-end Tomcat, so that these requests are processed by a Tomcat-based application. Conversely, the response from this Tomcat-based application is then returned through the jk redirector, back to IIS, and from there to the client. What motivates my puzzlement is that, if w3wp.exe is really an application which lives under IIS and not Tomcat, then there does not seem to exist any reason why the jk redirector would have anything to do with it. My knowledge being limited, there might well be something I am missing in all of this. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2665 - Release Date: 02/03/10 08:09:00 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Performance issues when adding Tomcat JK redirector to IIS's Default Web Site?
Dear All I've tried googling this but can't find much, so I was hoping one of you guys might be able to help me. My web application lives under IIS's Default Web Site. It needs to use the Tomcat JK redirector, so I have added the redirector as an ISAPI Filter on the Default Web Site. This means any websites which live under the Default Web Site will use the redirector. This is fine, however, there are other third-party websites which live under IIS's Default Web Site, which means the change I made above (adding the redirector as an ISAPI Filter on the Default Web Site) also affects these third party websites. So my question is this: Are there any known performance issues with the Tomcat JK redirector, in particular, any performance issues which could affect the third-party websites as explained in my example above? Any advice appreciated. Cheers Steve
RE: Performance issues when adding Tomcat JK redirector to IIS's Default Web Site?
Hi Peter Thanks for your reply. To answer your questions: I am using IIS 6 and IIS 7. I am using the latest version of the redirector, i.e. JK-1.2.28. Our technical architect decided how we should use the redirector. This is the basic design: IIS - Default Web Site (ISAPI Filter = isapi_redirect.dll) --- Virtual directory for our web application --- Virtual directory for the redirector --- Virtual directory for other third-party website IIS Application Pools - DefaultAppPool (may be used by Other third-party website) - AppPool for our web application - AppPool for the redirector So as you can see, all the virtual directories live under the Default Web Site. The isapi_redirect.dll is added as an ISAPI Filter for the entire Default Web Site, which means all the virtual directories under Default Web Site will be affected by this. My worry is it might impact Other third-party website. Thanks for your help. Cheers Steve -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: 15 February 2010 11:47 To: Tomcat Users List Subject: Re: Performance issues when adding Tomcat JK redirector to IIS's Default Web Site? Steve, you're likely to get more specific answers if you can tell us versions: what version of the redirector, and what versions of IIS? Also, can you tell us whose instructions you followed to get it working, as there are some out there that are... how shall I say it... less than ideal :-). Cheers, - Peter On 15 February 2010 11:30, Steve Ryan st...@acme.ie wrote: Dear All I've tried googling this but can't find much, so I was hoping one of you guys might be able to help me. My web application lives under IIS's Default Web Site. It needs to use the Tomcat JK redirector, so I have added the redirector as an ISAPI Filter on the Default Web Site. This means any websites which live under the Default Web Site will use the redirector. This is fine, however, there are other third-party websites which live under IIS's Default Web Site, which means the change I made above (adding the redirector as an ISAPI Filter on the Default Web Site) also affects these third party websites. So my question is this: Are there any known performance issues with the Tomcat JK redirector, in particular, any performance issues which could affect the third-party websites as explained in my example above? Any advice appreciated. Cheers Steve - 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
RE: Performance issues when adding Tomcat JK redirector to IIS's Default Web Site?
Apologies, for some reason the formatting of my e-mail get messed up. I have reformatted below: Hi Peter Thanks for your reply. To answer your questions: I am using IIS 6 and IIS 7. I am using the latest version of the redirector, i.e. JK-1.2.28. Our technical architect decided how we should use the redirector. This is the basic design: IIS - Default Web Site (ISAPI Filter = isapi_redirect.dll) --- Virtual directory for our web application --- Virtual directory for the redirector --- Virtual directory for other third-party website IIS Application Pools - DefaultAppPool (may be used by Other third-party website) - AppPool for our web application - AppPool for the redirector So as you can see, all the virtual directories live under the Default Web Site. The isapi_redirect.dll is added as an ISAPI Filter for the entire Default Web Site, which means all the virtual directories under Default Web Site will be affected by this. My worry is it might impact Other third-party website. Thanks for your help. Cheers Steve -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: 15 February 2010 11:47 To: Tomcat Users List Subject: Re: Performance issues when adding Tomcat JK redirector to IIS's Default Web Site? Steve, you're likely to get more specific answers if you can tell us versions: what version of the redirector, and what versions of IIS? Also, can you tell us whose instructions you followed to get it working, as there are some out there that are... how shall I say it... less than ideal :-). Cheers, - Peter On 15 February 2010 11:30, Steve Ryan st...@acme.ie wrote: Dear All I've tried googling this but can't find much, so I was hoping one of you guys might be able to help me. My web application lives under IIS's Default Web Site. It needs to use the Tomcat JK redirector, so I have added the redirector as an ISAPI Filter on the Default Web Site. This means any websites which live under the Default Web Site will use the redirector. This is fine, however, there are other third-party websites which live under IIS's Default Web Site, which means the change I made above (adding the redirector as an ISAPI Filter on the Default Web Site) also affects these third party websites. So my question is this: Are there any known performance issues with the Tomcat JK redirector, in particular, any performance issues which could affect the third-party websites as explained in my example above? Any advice appreciated. Cheers Steve - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org