应用程序池和工作进程
一个简单的问题:
AppPool 和工作进程 w3wp 一样吗?
如果是这种情况,当 w3wp.exe 在“空闲超时”后关闭时,为什么 AppPool 在 IIS 管理器上显示为仍在运行?
另外,当 w3wp.exe 在“空闲超时”后关闭时,它不会自动重新启动吗? 或者只有当流量再次进入网站时才重新启动?
任何帮助表示赞赏。
A simple question:
Is the AppPool same as the worker process w3wp?
If this is the case when the w3wp.exe shuts down after "idle timeout" why does the AppPool show as still running on the IIS Manager?
Also, when the w3wp.exe shuts down after "idle timeout", does it not restart automatically?
or does it restart only when traffic comes into the website again?
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用程序池可以托管(顾名思义)多个进程。在这种情况下,将有多个 w3wp.exe 进程与单个应用程序池关联。当应用程序池设置导致应用程序池进程被回收时,可能会发生这种情况。当旧的 w3wp.exe 耗尽现有连接时,会启动一个新连接来处理新流量。
W3WP 进程,AFAIK,仅在有传入流量时创建。启动该进程需要一个请求 - 它不像 NT 服务那样自行启动。
An app pool can host (as the name implies) multiple processes. In that case there will be several w3wp.exe processes associated with a single app pool. This can occur when app pool settings cause an app pool process to be recycled. While the old w3wp.exe is drained down of existing connections a new one is spun up to handle new traffic.
W3WP processes, AFAIK, are only created when there is incoming traffic. A request is necessary to start the process - it is not like an NT service that starts on its own.