[thelist] ASP - Application never unloads

Scott Dexter sgd at ti3.com
Thu Jun 1 17:44:09 2000


> 
> 	[Atkins, Chris]  You mentioned mtxstop in your first 
> message.  Does
> 	this shutdown MTS?  If their are no active sessions then there
> shouldn't
> 	be any active transactions right?  I'm going to do it 
> anyway, but
> I'm
> 	just curious why "this will prevent [me] from having a 
> hung server".
> 


mtxstop shuts down all MTS processes. There are some things in IIS/MTS that
are running even when there's nothing active. Mtxstop forces release of any
DLL's that IIS has cached into memory (which IIS will do for performance
reasons). On top of that, you can't guarantee the site is dead at 2am and
I've run into IIS hanging itself shutting down if there's traffic and
Sessions and db stuff and whatnot; its a
boy-scout-super-safe-just-in-case-thing ....


as a side-note, if you ever run into the ole "I can't update my DLL because
its in use" scenario when writing your own components for use with IIS, use
mtxstop....

(search for "mtxstop" at MS and read some of the articles if you want more)
sgd
--
think safely