IIS 6.0
(1)
IIS
(1)
Altough
(1)
F60151d875a3
(1)
Processses
(1)
B0f48764
(1)
Amoungst
(1)
Cc786561
(1)

app pool setting kills threads but keeps sessions

Asked By Scott
17-Nov-09 10:41 AM
Im having a problem with a .net 2.0 aspx app on IIS6 creating a silly number
of threads using the w3wp.exe process for its specifc app pool. I see this
issue once every few weeks. The app has been isolated to its own app pool
with the following settings:
---------------------------------------------------------------------
RECYCLING
recycle worker processses (in minutes) : 870
recycle worker process (no of requests): (not ticked)
recycle worker processes at the following times: 00:00
max virtual memory: (not ticked)
max used memory (in mb): 1000mb  (1gb)

PERFORMANCE
shutdown worker processes after being idle for (time in mins): 20
limit the kernal request queue (number of requests): 1000
enable cpu monitoring (%): 85
refresh cpu usage numbers (in mins): 5
action performed when cpu usage exceeds maximum cpu uses: NO ACTION (keeps
sessions)
max number of worker processes: 1

HEALTH
enable pinging (checked)
ping worker process every (seconds) : 30
enable rapid fail protection (checked)
failures: 5
time period (in mins):5
start time limit - worker process must startup within (seconds): 90
shutdown time limit - worker process must shutdown within (seconds): 90
---------------------------------------------------------------------
Normal running would see the w3wp.exe process utilise 300MB ram and 50
therads. When my problem occurs the thread count slowly increases to 10,000
, ram to 1GB before the threads are knocked back to 0. The w3wp.exe process
is NOT shutdown and my users are not logged out (crucially), ie they keep
their session and dont have to log back in . Altough the standard 50 threads
are killed in amoungst  the 10, 000 rouge threads some running processes may
return an error but no reports incoming from end users. I have debugging
tools in place that allow me to log possible calls the threads make , hoping
to see a pattern.

1)Just wondering if any expert can offer any pros/cons on the above app pool
settings ?

2)I think the "max used mem" setting appears to be doing the trick to
automatiaclly handle this issue (by killing the threads, keeping the session
alive , but can someone explain why ? ... i take it threads are unrelated to
the session).

Apparently the app uses server based session but we store a local cookie in
a browser for authentication.

Thank you.

Hi Scott,Sorry to hear of your website problems.

Jeffrey Ingalls replied to Scott
18-Nov-09 09:31 AM
Hi Scott,

Sorry to hear of your website problems.  The Recycling section values should
depend on information you gather in perf mon.  If you find the threads in
w3wp.exe to linearly increase within 60 minutes you may want to change the
value of 870 minutes to 60 minutes.  Perhaps you see threads increase around
1:00pm everyday therefore you may want to recycle around that time.  What you
are aiming for is analyzing the data to make best guesses on how to get the
app to limp by until you resolve the problem.

To get to root cause there are a few places you can look after gathering
performance monitor data such as the System and Application event viewer logs
and the IIS logs themselves around the time of the problem (match up the time
when threads begin to increase). If this data is not helping you get to a
solution, you can try using tools like Request Monitor, IIS Trace and the IIS
Request Viewer.  The Debug Diagnostic Tool is another valuable tool.

More information...

IIS Request Monitor:
http://technet.microsoft.com/en-us/library/cc786561(WS.10).aspx

How to Trace Requests in IIS 6.0:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b0f48764-9df2-4d4f-9746-2601e336f0ad.mspx?mfr=true

Debug Diagnostic Tool v1.1
http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

All the best,
Jeffrey Ingalls
Post Question To EggHeadCafe
IIS app pool setting kills threads but keeps sessions Im having a problem with a .net 2.0 aspx app on IIS6 creating a silly number of threads ram to 1GB before the threads are knocked back to 0. The w3wp.exe process is NOT shutdown and my users keep their session and dont have to log back in . Altough the standard 50 threads are killed in amoungst the 10 as the System and Application event viewer logs and the IIS logs themselves around the time of the problem (match up a solution, you can try using tools like Request Monitor, IIS Trace and the IIS Request Viewer. The Debug Diagnostic Tool is another valuable tool. More information. . . IIS Request Monitor: http: / / technet.microsoft.com / en-us / library / cc786561 WS.10).aspx How to Trace Requests in IIS 6.0: http: / / www.microsoft.com / technet / prodtechnol / WindowsServer2003 / Library / IIS
IIS Appl Pool Hang on IIS6 - IISState Log Hi there, We Thanks in advance, Jason - -- -- - Opened log file 'C: \ Program Files \ IIS Resources \ IISState \ output \ IISState.log' * ** ** ** ** ** ** ** ** ** ** ** Starting new log output IISState version 3.0 Wed Jun 20 15:43:29 2007 OS = Windows 2003 Note: Thread times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** IIS has crashed. . . Beginning Analysis DLL (!FunctionName) that failed: Thread ID: 35 System Thread ID: 510 Kernel Time: 0:0:0.921 User Time 0:0:11.906 * ** WARNING: Unable to verify checksum for C: \ WINDOWS \ assembly \ NativeImages_v2.0.50727_32 \ System.Web \ 16444725518b3045b89dd50a3bc9d330 \ System.Web.ni.dll * ** ERROR: Module
IIS w3wp.exe error ( iis crash) Hello, We are facing problems with the IIS. it is crashing randomly. In title its says as notification output \ IISState.log' * ** ** ** ** ** ** ** ** ** ** ** Starting new log output IISState version 3.0 Wed Jan 07 12:41:14 2009 OS = Windows 2003 Note: Thread times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** IIS has crashed. . . Beginning Analysis DLL (!FunctionName) that failed: ntdll!RtlAllocateHeap Thread ID: 5 System Thread ID: 19bc Kernel Time: 0 0:0.421 User Time: 0:0:0.406 * ** ERROR: Symbol file could not be found. Defaulted
IIS IISSTATE Log to solve sporadic asp.net issue - Please help times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** Thread ID: 0 System Thread ID: 4f0 Kernel Time: 0:0:0.31 User Time: 0:0:0.93 Thread Status: Thread is in a WAIT state. Thread 0x23 Thread ID: 1 System Thread ID: 127c Kernel Time: 0:0:0.0 User Time: 0:0:0.0 Thread Type
IIS IIS stops working about once an hour I have a windows ping the server and remote into it via terminal server, IIS just isn't doing its job. This used to be server but I don't have it starting with windows. IIS will just stop working and won't work again (services utilization. I'm running AVG Network Edition. here is my iis state log: Opened log file 'C: \ iisstate \ output \ IISState-1468 times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** Thread ID: 0 System Thread ID: 5b8 Kernel Time: 0:0:0.15 User Time: 0:0:0.0 Thread Type: Other # ChildEBP RetAddr 00 0006f89c
IIS iis6 crash Hi can anyone help me with the problem Note: Thread times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** IIS has crashed. . . Beginning Analysis * ** WARNING: Unable to verify checksum for mFdllinfo Thread ID: 62 System Thread ID: 10d0 Kernel Time: 0:0:0.46 User Time: 0:0:0.437 Thread Type: Other # ChildEBP RetAddr WARNING: Stack unwind information times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** Thread ID: 0 System Thread ID: db4 Kernel Time: 0:0:0.46 User Time: 0:0:0.31 Thread
IIS IIS6 Hangs Randomly Let me start by giving you the went live with the new server, and eventually noticed that IIS hangs. When we go onto the server, there are no errors on the screen, IIS seems to be running fine, and nothing in the EVENT get it working again). So in x64 or x32 mode, IIS still freezes. To get it working, i just simple log times are formatted as HH:MM:SS.ms * ** ** ** ** ** ** ** ** ** ** ** Thread ID: 0 System Thread ID: 2dc Kernel Time: 0:0:0.31 User Time: 0:0:0.62 Thread Type: HTTP Compression Thread # ChildEBP RetAddr 00
IIS IIS 6.0, Windows SBS2003 and Crystal Reports for .Net 2003 -> Evertime I exe -p 3024 -sc -hc Microsoft (R) Windows Debugger Version 6.8.0004.0 X86 Copyright (c) Microsoft Corporation. All rights reserved. sxd av ModLoad: 77340000 77443000 C: \ WINDOWS \ WinSxS \ x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55 \ comctl32.dll ModLoad: 60060000 60067000 C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_filter.dll ModLoad: 78130000 781cb000 C: \ WINDOWS \ WinSxS \ x86_Microsoft VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5CF844D2 \ MSVCR80.dll ModLoad: 5a370000 5a382000 c: \ windows ModLoad: 7a090000 7a1c8000 c: \ windows \ assembly \ gac \ system.web \ 1.0.5000.0_ _b03f5f7f11d50a3a \ system.web.dll ModLoad: 7b0a0000 7b1d0000 c: \ windows