Solved

IIS Hangs

Posted on 2008-10-29
6
399 Views
Last Modified: 2008-11-14
Between 12:15 and 12:30 PM, usually every day, IIS hangs and it requires a restart. It doesn't happen everyday, there us probably about a 70% probablity of it happening. It's as if there is a scheduled task that is running that is causing this but we have looked at all applications and tasks and there is nothing that is being executed at this time.

We are running asp applications on SQL server and an ODBC connection to an Ingres database. There are no scheduled tasks occuring on the databases.

Does anyone know of anything that could be causing this? What is the best software to get so I can diagnose it? If I can't find the problem then I want to automatically restart iis when it happens - what is te best software to do this?
0
Comment
Question by:DavidAreen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 22838801
Hi,

do you restart just IIS (which service?) or the entire web server?

when the web site 'hangs', can you access non-script content (like a plain image or static html files)?

when the site hangs, take a look at the task manager (ctrl-alt-del task manager) processes list - are there any processes using large amount of memory or cpu resource?

Cheers.
0
 
LVL 1

Author Comment

by:DavidAreen
ID: 22866473
Thanks for response. I haven't been able to get the info until just now.

All it needs is an iisreset to get it going again.

Whilst in a hung state images are displayed.

The process w3wp.exe is consuming all available CPU time.
0
 
LVL 37

Expert Comment

by:meverest
ID: 22873054
OK, in that case it is almost certainly a bug in the application.

sometimes there is an infinite loop in the code under certain conditions, and when that happens, CPU hits the roof and the worker process (i.e. w3wp.exe) stops responding to new requests.

If there is only the one application running on that site, you may be able to get an idea of which script is causing trouble by looking at the web log file when the thing has failed and see if there is any script that shows up in the last few requests prior to the problem occurence.

Sadly, it is not a simple job to find the cuplrit, so good luck with it! <:-}

Cheers.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 1

Author Comment

by:DavidAreen
ID: 22881601
Bug?! We dont have those in our applications!!

Aren't there any tools/programs that can assist in this?

I already checked the web logs and I couldn't spot anything that seemed relevant.

There are script timeouts on all the web sites and they aren't very large. If there was a loop then eventually it would just time out and free up the site. When this has happened at the week end it can be stuck for hours before it gets noticed.


0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 22891126
Hi,

>> Bug?! We dont have those in our applications!!

heheheh, of course not - I apologise for making that suggestion! ;-)

Take a look at this info about IIS diagnostics.

http://www.adopenstatic.com/faq/IISConfigureIISState.aspx

Cheers.
0
 
LVL 1

Author Comment

by:DavidAreen
ID: 22958890
Hi

The link pointed me in the right direction. I installled the Microsoft DebugDiag program which contains a hang analysis tool. That spotted the offending dll which of course was not one of ours!

Thanks for the help
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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