Solved

IIS Hangs

Posted on 2008-10-29
6
395 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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