Solved

IIS Hangs

Posted on 2008-10-29
6
386 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
  • 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

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.

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now