best way to restart IIS services?

best way to restart IIS services?

am 01.12.2007 08:10:03 von hassan

Do we manually restart the world wide web service in the Services applet or
run IISreset ? Is it the same thing ?

Also can we recycle IIS ?

I heard you can recycle IIS if the memory reaches a set limit ? Are there
other conditions you can recycle IIS on conditions ?

Re: best way to restart IIS services?

am 01.12.2007 08:22:55 von Trevor Benedict R

You seem to be having some serious questions about IIS. What application are
you running?. Is it ASP, ASP.NET, CGI.Some decision can be made depending on
the applications that are hosted.

Regards,

Trevor Benedict
MCSD

"Hassan" wrote in message
news:uhgtAl%23MIHA.4948@TK2MSFTNGP02.phx.gbl...
> Do we manually restart the world wide web service in the Services applet
> or run IISreset ? Is it the same thing ?
>
> Also can we recycle IIS ?
>
> I heard you can recycle IIS if the memory reaches a set limit ? Are there
> other conditions you can recycle IIS on conditions ?
>
>

Re: best way to restart IIS services?

am 01.12.2007 09:02:44 von Kristofer Gafvert

You should never ever need to restart IIS. If you have problems with an
application, it should be enough to restart the application pool that hosts
the applicaiton (worker process).

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"Hassan" skrev i meddelandet
news:uhgtAl%23MIHA.4948@TK2MSFTNGP02.phx.gbl...
> Do we manually restart the world wide web service in the Services applet
> or run IISreset ? Is it the same thing ?
>
> Also can we recycle IIS ?
>
> I heard you can recycle IIS if the memory reaches a set limit ? Are there
> other conditions you can recycle IIS on conditions ?
>
>

Re: best way to restart IIS services?

am 01.12.2007 20:04:52 von hassan

its ASP.net

Questions are serious and also naive ;)


"Trevor Benedict" wrote in message
news:OgYvKu%23MIHA.2268@TK2MSFTNGP02.phx.gbl...
> You seem to be having some serious questions about IIS. What application
> are you running?. Is it ASP, ASP.NET, CGI.Some decision can be made
> depending on the applications that are hosted.
>
> Regards,
>
> Trevor Benedict
> MCSD
>
> "Hassan" wrote in message
> news:uhgtAl%23MIHA.4948@TK2MSFTNGP02.phx.gbl...
>> Do we manually restart the world wide web service in the Services applet
>> or run IISreset ? Is it the same thing ?
>>
>> Also can we recycle IIS ?
>>
>> I heard you can recycle IIS if the memory reaches a set limit ? Are there
>> other conditions you can recycle IIS on conditions ?
>>
>>
>
>

Re: best way to restart IIS services?

am 01.12.2007 20:41:02 von Tiago Halm

Hassan,

With IIS6, always perform AppPool recycling. Its harmless and will only hurt
in the following situations:
#1 InProc sessions in use
#2 slow .NET restart for cache intensive web apps.

As to how to recycle, you can have it done by defining thresholds in the
AppPool properties, or do it manually. However, and before starting to
restart IIS or recycle the AppPools, the first step is to understand _why_
you need to do it.

Let us know why you're considering it ...

Tiago Halm

"Hassan" wrote in message
news:eBFXc0ENIHA.1204@TK2MSFTNGP03.phx.gbl...
> its ASP.net
>
> Questions are serious and also naive ;)
>
>
> "Trevor Benedict" wrote in message
> news:OgYvKu%23MIHA.2268@TK2MSFTNGP02.phx.gbl...
>> You seem to be having some serious questions about IIS. What application
>> are you running?. Is it ASP, ASP.NET, CGI.Some decision can be made
>> depending on the applications that are hosted.
>>
>> Regards,
>>
>> Trevor Benedict
>> MCSD
>>
>> "Hassan" wrote in message
>> news:uhgtAl%23MIHA.4948@TK2MSFTNGP02.phx.gbl...
>>> Do we manually restart the world wide web service in the Services applet
>>> or run IISreset ? Is it the same thing ?
>>>
>>> Also can we recycle IIS ?
>>>
>>> I heard you can recycle IIS if the memory reaches a set limit ? Are
>>> there other conditions you can recycle IIS on conditions ?
>>>
>>>
>>
>>
>
>

Re: best way to restart IIS services?

am 01.12.2007 20:49:01 von hassan

Tiago,

What is the command line to manually recycle the pool ?

"Tiago Halm" wrote in message
news:ehfmKEFNIHA.4684@TK2MSFTNGP06.phx.gbl...
> Hassan,
>
> With IIS6, always perform AppPool recycling. Its harmless and will only
> hurt in the following situations:
> #1 InProc sessions in use
> #2 slow .NET restart for cache intensive web apps.
>
> As to how to recycle, you can have it done by defining thresholds in the
> AppPool properties, or do it manually. However, and before starting to
> restart IIS or recycle the AppPools, the first step is to understand _why_
> you need to do it.
>
> Let us know why you're considering it ...
>
> Tiago Halm
>
> "Hassan" wrote in message
> news:eBFXc0ENIHA.1204@TK2MSFTNGP03.phx.gbl...
>> its ASP.net
>>
>> Questions are serious and also naive ;)
>>
>>
>> "Trevor Benedict" wrote in message
>> news:OgYvKu%23MIHA.2268@TK2MSFTNGP02.phx.gbl...
>>> You seem to be having some serious questions about IIS. What application
>>> are you running?. Is it ASP, ASP.NET, CGI.Some decision can be made
>>> depending on the applications that are hosted.
>>>
>>> Regards,
>>>
>>> Trevor Benedict
>>> MCSD
>>>
>>> "Hassan" wrote in message
>>> news:uhgtAl%23MIHA.4948@TK2MSFTNGP02.phx.gbl...
>>>> Do we manually restart the world wide web service in the Services
>>>> applet or run IISreset ? Is it the same thing ?
>>>>
>>>> Also can we recycle IIS ?
>>>>
>>>> I heard you can recycle IIS if the memory reaches a set limit ? Are
>>>> there other conditions you can recycle IIS on conditions ?
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Re: best way to restart IIS services?

am 01.12.2007 21:03:29 von Tiago Halm

Use c:\windows\system32\iisapp.vbs [1]

Tiago Halm

[1]

C:\WINDOWS\system32>cscript iisapp.vbs /?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Description: list IIS application pools and associated worker processes.
Recycle application pools.

Syntax: IIsApp.vbs [{ /a | /p } [/r] ]

Parameters:

Value Description
/a Specify an application pool by name. Surround
with quotes if it contains spaces.
If used alone without an accompanying action,
IIsApp.vbs will report PIDs of currently running
w3wp.exe processes serving pool .
/p Specify a process by process ID. If used alone
without an accompanying action, IIsApp.vbs will
report the AppPoolId of the w3wp process specified
by . When a PID is specified with /r, that PID
is mapped to an application pool and the action is
taken upon the application pool. If a PID is given
for a web garden, i.e. an application pool served
by more than one w3wp, then all w3wp's for that
application pool will be acted upon.
/r Recycles the application pool.

DEFAULT: no switches will print out the PID and AppPoolId.

Examples:

IIsApp
IIsApp /p 2368
IIsApp /a DefaultAppPool /r
IIsApp /p 2368 /r