[thelist] New Session Failed

Ken Schaefer Ken at adOpenStatic.com
Wed Apr 20 02:44:51 CDT 2005


Hi Michele,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Michele Foster (WizarDev)
: Subject: [thelist] New Session Failed
: 
: I'm working on some code locally, IIS (under Win2K), 
: Access database, with ASP.  Browser:  IE6
: 
: Problem is .. when I create an infinite loop (ooops) ... 
: I keep locking up my system.  Ok, this is pretty normal, 
: hit the stop button in the browser, and try new code .. 
: but that's not working.  Ok, once the system recovers,
: which is taking a few minutes, everything is sluggish 
: and barely responding .. once that settles down, I 
: can restart a new browser session, but when I
: go to my localhost web server, I'm getting an error 
: I've never seen before "HTTP/1.1 New Session Failed". 
: I am using cookies for this application, and
: tried to go to the logout page which resets the 
: cookies, but that had no effect.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Pressing stop in your browser, just tells IE to stop waiting for a response
from the server. The server is still busy processing your infinite loop.
Eventually IIS will timeout the ASP script if it doesn't return. 

The default timeout period is 90 seconds (this is configurable: use IIS
Manager -> right click on your website/application -> properties -> Home
Directory tab -> Configuration button -> Options tab -> ASP Script Timeout).

Only at this point will IIS kill the thread processing the ASP page.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Without resorting to rebooting the computer, 
: does anyone know how to correct
: this .. allow me to have a new session?  
: Of course, if I stopped writing infinite loops, 
: I wouldn't be having this problem.  :) 
: Any way I can just restart IIS or something 
: of that nature?  Rebooting takes way too long.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

IIS lives in a bunch of services. You can restart those services via the
Services Admin Tool (GUI), or by using net stop / net start (CLI).

IIS actually provides a command line tool to do this for you :-) IISReset.

Start -> Run -> IISReset

Run iisreset /? from a command prompt to see all the options.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: I think I have more problems, as I'm 
: getting out of Virtual memory errors
: when barely anything is open. 
: I don't think the problems are related...
: but who knows.  Might be about time 
: for a reinstall of Win2k  :(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In Task Manager go to the Processes tab, and then select View -> Select
columns and ensure that Memory Usage and Virtual Memory are selected. Check
the box that says "Show processes from all users". Now sort by Memory Usage,
and see what processes are consuming excessive amounts of memory, or virtual
memory.

Cheers
Ken

--
www.adOpenStatic.com/cs/blogs/ken/ 




More information about the thelist mailing list