如何通过IIS在回收应用程序池中添加特定时间,它将显示在事件日志中?

问题描述 投票:-1回答:1

我想在回收特定时间测试应用程序应用程序池。我已经在IIS设置中对其进行了配置,但是在检查事件查看器后,仍然没有显示回收时间。有没有人可以帮助我?

performance iis web-applications pool event-viewer
1个回答
0
投票

您是否在applicationhost.config中看到这样的配置?

  <add name="application pool">
                <recycling>
                    <periodicRestart>
                        <schedule>
                            <clear />
                            <add value="13:43:00" />
                        </schedule>
                    </periodicRestart>
                </recycling>
            </add>

您是否检查过预定时间后是否更改了应用程序池的PID?

要解决此问题,我们需要检查这是应用程序池回收问题还是事件日志问题。

IIS将不会写入回收事件日志,除非您启用了计划的回收事件日志时间。enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.