Solved

W3SVC Warning 1013 - Users sessions timeout

Posted on 2004-08-18
17
25,616 Views
Last Modified: 2011-08-18
Hello,
I have a Windows 2003 Server running IIS 6.0 and serves an ASP application. But randomly the session times out for users using the ASP application. And I also observed that in the system log I get this warning:
Source : W3SVC
Event ID: 1013
"A process serving the application pool 'Default App Pool' exceeded time limits during shutdown. The process id was ...."

Are these two related. And why am I getting this warning. How do I fix it.

Thanks for your help.
maximus
0
Comment
Question by:maximus_vj
  • 9
  • 7
17 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11835094
The two are not necessarily related but appear that they may be in this case.

The 1013 error is basically saying that the Application Pool needed to recycle for some reason and the W3WP.exe process didn't shut down gracefully.  This can be due to a long running request or hung threads (other possibilities but these are most common).

Do you have any of the health monitoring for the Application Pool set to recycle the pool?

Do you make any complicated SQL calls from you applications?

Are there any other entries in the Event Logs that may be related to IIS?

The only way to fix the issue is to figure out why your App Pool needs to recycle and fix the problem that is causing the w3wp to not shut down in a timely manner.

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11836134
Thanks Dave.
These are the answers to your questions:
1) Do you have any of the health monitoring for the Application Pool set to recycle the pool?
For default application pool I have "Recycle Worker Process In 1740 minuites". But it recycles more frequently than that.

2)Do you make complicated SQL calls from your applications?
Yes

3) Are there any other entries in the Event Logs that may be related to IIS?
This is what I found in the application log:
Source:W3SVC-WP
Event ID:2262
Description:
ISAPI 'C:\WINDOWS\SYstem32\inetsrv\asp.dll' reported itself as unhealthy forteh following reason:'ASP unhealthy because 100% of executing requests are hung and 0% of the request queue is full.'
And I also observed that this will happen first and after this 1013 error regarding application pool will show up.
Any ideas?




0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11836312
Sounds like you've got a hang.

ASP sees that all of it's threads are stuck and asks for a recycle.  IIS tries to recycle but can't because the hung threads won't terminate so it has to kill the W3WP process serving the pool.

You'll need to troubleshoot this as a hang to determine what's causing the issue.....

Dave Dietz
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:maximus_vj
ID: 11836366
Thanks Dave.
So you think ASP application is causing this hang up.
If I run iisstate utiltity does it help me track the culprit ASP pages or that utiltity will help only in diagnosing IIS issues?

maximus
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11837468
IISState may help - its certainly worth a try.

I would be very curious what the ASP Requests Queued counter in Perfmon reads when you are seeing these errors.  If it is higher than 0 for any significant period of time I would almost be willing to lay money against it being an issue with ASP accessing your SQL Server.

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11838137
Hi Dave,
Thanks again. I will log that counter and keep you posted.
0
 

Author Comment

by:maximus_vj
ID: 11844469
Hello Dave,

That happened to me again. And this time I logged the ASP: Request Queue and Processor Time then the Request Queue was 28 for 45 minutes. And after that it shut down the process.
But the CPU utilization wasn't that high. So do you think it is the ASP that is causing the hang.

Thanks
maximus
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11849133
Best guess is that you have long running or hung requests to your database from your ASP pages.  I have seen this a number of times in the past.

Might try checking your SQL logs for errors.  Also if you can make a hang dump of the problem available I would be happy to take a look at it.

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11851529
Hi Dave,

Thanks for the reply. What program I have to use to do the hang dump. And one more thing is I changed soem of the ASP Pages (Long Running pages) and this time teh Requests Queued are 5 for 9 hrs.(Requests queued are down from 28 to 5).  During this time w3wp.exe process is utilizing 13% of the CPU all the time no change.

I checked SQL Logs with no luck.

Please let me know how I can do the hang dump.(utility)

Thanks
maximus
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11852700
Download and install the IIS Crash/Hang Agent - http://www.microsoft.com/downloads/details.aspx?familyid=01c4f89d-cc68-42ba-98d2-0c580437efcf&displaylang=en

Either configure it to autodump for a hang or simply run IISDUMP.exe when you see the hang condition.

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11855320
Hi Dave,

I installed the IIS Crash/Hang Agent on the development box. I have a few questions regarding that.

1) Is it OK to install it on the production box? What I observed on my DEV box is a process is running _IISCHAGent.exe and also in the IISCHAgent.ini file only the [crash Agent] is enabled to 1 and all other options are commented out. So after fixing this bug do we have to disable that and uninstall this debugging utility?
2) Do I have to use Crash Agent or Hang Agent?
As you can see my error is:
This is what I found in the application log:
Source:W3SVC-WP
Event ID:2262
Description:
ISAPI 'C:\WINDOWS\SYstem32\inetsrv\asp.dll' reported itself as unhealthy forteh following reason:'ASP unhealthy because 100% of executing requests are hung and 0% of the request queue is full.'

Which one will do the trick?
3) I am on Win2K3 Server and IIS 6.0 and wswp.exe runs on NETWORK SERVICE account for IISDUMP to work does this need to be in LOCAL SYSTEM account?

4) Or instead of doing all this, Can I just do this:
Install debugging tools and execute IISDUMP when the hang occurs?
If I have to do this what switches I should use so that you can get good information?

PS: I don't know how to give more points to you. Do you think I should post this in a new thread?

Thanks
maximus
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 250 total points
ID: 11856274
1) Yes.
2) Hang Agent
3) No.
4) Absolutely.  :-)  To catch a hang dump simply run iisdump.exe - it's default settings are to capture a hang dump and will be what we need.

P.S.) If you feel it is worth more points I believe you can increase the number of points for the question.  If you can't figure it out post a question in the Community forum....  :-)

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11856467
Hi Dave,

Thanks again. I am planning to go with 4th option( IISDUMP when hang happens ).
One more question (this never ends):
When I install the debug tools by default it will be running as Crash Agaent. In the INI file Crash Agent is enabled. As I will be just using IISDUMP when hang happens can I just comment that out (Crash Agent) and then simply do IISDUMP when hang happens.

Thanks
maximus


0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11857665
Yes.  :-)

Dave Dietz
0
 

Author Comment

by:maximus_vj
ID: 11872639
Hi Dave,
I got the Hang condition again and I ran IISDMUP . I got dump file but it is 84 MB. How can I send it to you so that you can take a look at it.

Thanks
maximus
0
 

Author Comment

by:maximus_vj
ID: 11872987
Hi Dave,
You can access the dump file here.

http://doc.curriculummapper.com/tempdoc/Hang--6384_w3wp_DefaultAppPool.dmp

Let me know if you need other files also.

Thanks
maximus.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTTP to HTTPS redirect is not working 1 78
IIS on 2012 R2 server local access works, remote does not 12 64
Editing XSL files, 2 50
web.config redirect issues 5 48
Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question