Solved

IIS Hangs

Posted on 2008-10-29
6
392 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC site showing code blocks 3 73
Redirect rewrite back to same address 3 65
Do you know any Office editor web for IIS or Apache web server)??? 10 92
IIS redirect 1 65
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

12 Experts available now in Live!

Get 1:1 Help Now