Link to home
Start Free TrialLog in
Avatar of santaspores1
santaspores1Flag for United States of America

asked on

IIS Hangs

Windows Server 2003
IIS 6

Hello EE,

I have two issues (one smaller, one larger).  The smaller issue is that I went into IIS, went to the properties of my web server, checked the “Enable Logging” checkbox,  clicked the properties button and specified a path for the log files.  The path is to a newly created folder on a non-system internal drive.  But no log files are created – the folder is empty after 24 hours.  And I have had traffic to this web site (I have database records created by web apps that prove it).  

I restarted IIS in case it was required.  No help there.  I made sure that the Admin group and System had full perms to the dir.  Are any other permission settings required?  I have set the logs to restart when they reach 49MB.

That’s the smaller issue.  The larger issue is that IIS has recently started to hang occasionally.  No error logs are written to the system or application log files (and in fact the system is running very well and has no issues at all).  But everything will be going well for maybe 5 days of continual traffic.  And then IIS will hang.  I will have to restart IIS.  At that point everything will be fine again.  I have a few new asp apps, but they are really really similar to existing apps and I don’t see any real problems.  

How do I go about troubleshooting IIS hangs that are intermittent and which write no information to the system log files?  I don’t think the IIS log files mentioned above contain any really useful troubleshooting information (or at least very likely useful).

I need to know which app is hanging and what is happening when it hangs.

I'll award points for figuring out the IIS log issue - because that is cut and dry.  But love and good karma to anyone who can help with the more general issue  : )
Avatar of DarinTCH
DarinTCH
Flag of United States of America image

did you just enable the check box
did you choose the log format
how did you redirect the location?

see articles here

http://support.microsoft.com/kb/313437
I'd start by changing the log path to something on your C: drive just to see if logging works there.  There obviously shouldn't be a problem writing log files to a non-system drive (I do it) and I don't think there are any special permissions required.

As to the IIS hangs, I've experienced that.  My solution was to write a batch file that restarted IIS once a day (it was for an internal web site so I could restart it at midnight without impacting anyone).  

I guess ultimately, you might want to consider removing and re-installing IIS.  That may help.  You don't mention what version of IIS this is, but do you have dedicated Application Pools for all your sites?
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of santaspores1

ASKER

DarinTCH:
I did check the checkbox (it is selected)
I did choose a log format (it defaults to one anyway).  I tried different ones.
The method for specifying the path isn't any kind of option - I clicked a button to browse to the folder I wanted.

Paulmacd:  
I don't really want to place the log on C at all... but it was good advice to suggest it as a test.
It is IIS version 6.  I am using app pools... and they have been fine.
I'm not really interested in restarting IIS with a batch file... but it is a very good idea to have suggested.
Thanks!

Jacko:
THANKS!  I will look into those logs.
Jacko:  I have several of them - they seem to create a new file when they reach a gig - can I delete the old ones without any problem?
never mind... they are only one meg... not one gig...
Well, the httperr log clearly shows that I started having trouble on the date that I went live with three new asp apps.  

Almost all of the errors are "Connection_Abandoned_By_AppPool".  But there are days where I have a lot of such entries but IIS never locked up.

But as luck would sort of have it.  IIS just locked up.  Today, at 9:45 am IIS was hung.  I know that it was functioning at around 9:00 AM.  Here are my log entries so far today:

2011-02-25 03:24:23 AnIP MyServerIP 80 - - - - - Timer_MinBytesPerSecond -
2011-02-25 03:24:33 AnIP MyServerIP 80 - - - - - Timer_MinBytesPerSecond -
2011-02-25 04:34:13 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 04:34:13 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 06:01:03 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 06:01:03 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 13:56:42 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 13:56:42 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 14:03:17 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 14:35:57 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 14:51:37 AnIP MyServerIP 80 - - - - - Timer_ConnectionIdle -
2011-02-25 15:44:07 AnIP MyServerIP 80 HTTP/1.1 POST /AppName1/AppName1page2.asp - 1655943446

Connection_Dropped Internet
2011-02-25 15:44:37 AnIP MyServerIP 80 HTTP/1.1 POST /AppName1/AppName1page2.asp - 1655943446

Connection_Dropped Internet
2011-02-25 15:46:07 AnIP MyServerIP 80 HTTP/1.1 GET /AppName2/ - 1655943446

Connection_Abandoned_By_AppPool Internet
2011-02-25 15:46:07 AnIP MyServerIP 80 HTTP/1.1 POST /AppName1/AppName1page2.asp - 1655943446

Connection_Abandoned_By_AppPool Internet
2011-02-25 15:46:07 AnIP 22976 MyServerIP 80 HTTP/1.1 GET /AppName3/apage.asp - 1655943446

Connection_Abandoned_By_AppPool Internet
2011-02-25 15:46:07 AnIP 44977 MyServerIP 80 HTTP/1.1 GET /AppName1/ - 1655943446

Connection_Abandoned_By_AppPool Internet
2011-02-25 15:46:07 AnIP 12863 MyServerIP 80 HTTP/1.1 GET /AppName3/apage.asp 503 1655943446 N/A

Internet
2011-02-25 15:46:07 AnIP 26370 MyServerIP 80 HTTP/1.1 GET /AppName2/ 503 1655943446 N/A Internet
2011-02-25 15:46:07 AnIP 51840 MyServerIP 80 HTTP/1.1 GET /favicon.ico 503 1655943446 N/A Internet
2011-02-25 15:46:24 AnIP 50786 MyServerIP 80 HTTP/1.1 GET /AppName1/AppName1page2.asp 503 1655943446 N/A

Internet
2011-02-25 15:46:24 AnIP 50788 MyServerIP 80 HTTP/1.1 GET /favicon.ico 503 1655943446 N/A Internet
2011-02-25 15:46:47 AnIP 50791 MyServerIP 80 HTTP/1.1 GET /AppName1 503 1655943446 N/A Internet

--------------

why do the times show entries like 15:46:07 - when it is still before noon today?

Note that I restarted IIS at 9:46 sm
The times are GMT (Zulu).

Since you have more than one application, why not try creating multiple Application Pools - one for each application?
If the "connection dropped" entries that show as happening at 15:44:3 represent my restarting IIS at 9:46am... then I don't have any real problems just before that time... all was quiet.
Some of the entries show a value "1655943446" - what is this?
I'm guessing that's the GUID for the site.  You may notice it as part of the path to the log files (W3SVC1655943446\exyymmdd.log).
Its the site id what is more of a concern is the error code before it 503 which refers to service unavailable. Unfortunately not m,uch indiation why.

What apppool settings do you have? , I did once have a problem similar where the apppool kept eating up more and more memory due to a memory leak in some of the websites, we changed the apppool settings to recycle after hitting a certain memory usage limit.
I just changed the app pool Request Queue Limit from 1000 to 4000.  I note that if the queue limit is reached it send a 503 to the client.  Maybe I needed to increase this limit.
Thanks!!!!!!
I am still working on this.  But I thank you ALL for helping.