Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > november 2005 >

inetserver iis : IIS Restarts WebServices



Abhimanyu Sirohi
11/28/2005 8:59:03 PM
Hi,
It seems IIS restarts webservices after a period of time. I have installed
WebServices on a server, these WebServices maintain a state in themselves
according to the requests by client application. The problem is that these
WebServices restart all by themselves and the state is lost. Why does IIS
Chris Crowe [MVP 1997 -> 2006]
11/29/2005 12:00:00 AM
What is the OS of the server?

On Windows 2003 Server by default the Application Pool will shutdown after
20 minutes of inactivity and if you are maintaining state in the session or
application object or the cache object then you will loose them.

On Windows 2000 and XP the Server only Maintains the state for 20 minutes
unless there is some activity and again the session or application state can
be lost.

Is this your situation?

You can adjust this but your state may be better persisted to the file
system or a SQL Database but it does depend on your specific situation.
--

Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------


"Abhimanyu Sirohi" <AbhimanyuSirohi@discussions.microsoft.com> wrote in
message news:67A60B77-246C-45AC-8CB9-F5FC3CFB4995@microsoft.com...
[quoted text, click to view]

Abhimanyu Sirohi
12/6/2005 8:11:02 PM
Hi,
You are right. We have Windows Server 2003.
Can this thing be corrected. I dont want to loose state every 20 minutes or
so.

regards
Chris Crowe [MVP 1997 -> 2006]
12/10/2005 12:00:00 AM
Yes you can adjust the Application pool settings to stop it from shutting
down.

Open Internet Services Manager
Select the Web Site
Select the Home Directory Tab
Take note of the Application Pool being used.
Select the Application Pools Node
Select the Application Pool
Right Click and select Properties
There are a number of options about recycling worker processes.
Also take note on the Performace tab the setting to shut down the worker
process after XX minutes which can be disabled.
--

Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------


"Abhimanyu Sirohi" <AbhimanyuSirohi@discussions.microsoft.com> wrote in
message news:590F5205-A7E8-4830-9C7A-5C15ED20304C@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button