Quelle est la différence entre iisreset, recycle, refresh et restart?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Quelle est la différence entre iisreset, recycle, refresh et restart?

Message par ForumBot »

In IIS7, there are numerous things you can do that seem to restart the website. I am unclear about exactly how they are all related.




  • run iisreset from the command line




  • refresh a website




  • recycle an app pool




  • restart a website




Can someone explain exactly what each one does please?

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Quelle est la différence entre iisreset, recycle, refresh et restart?

Message par ayi »

iisreset will stop and start the World Wide Web Publishing Service. This, of course, applies to all of your application pools. I’m sure you noticed a process being created for each application pool. This process will handle requests for all websites associated with it. When you recycle an application pool, IIS will create a new process (keeping the old one) to serve requests. Then it tries to move all requests on the new process. After a timeout the old process will be killed automatically. You usually recycle your application pool to get rid of leaked memory (you might have a problem in your application if this needs to be a regular operation, even though it is recommended to have a scheduled recycle). As for restarting a website, it just stops and restarts serving requests for that particular website. It will continue to serve other websites on the same app pool with no interruptions.


If you have a session oriented application, all of the above will cause loss of session objects.


Refreshing a website has no effect on the service/process/website and is merely a UI command to refresh the treeview (maybe you added a directory you don’t see in the management console).

Répondre

Revenir à « Windows 11 »