Windows 2016 服务器、IIS 10 和 Adobe ColdFusion 2018 使用 Tomcat。该服务器上有大约 8 个站点,其中一个站点间歇性出现 500 错误。所有其他站点均保持正常运行并响应。失败请求跟踪显示“筛选器错误 - 函数 0x1 不正确”
如果您回收该网站的应用程序池或在 IIS 中重新启动该网站,该网站将恢复运行。我已将应用程序池设置为每 10 分钟回收一次,但这似乎无助于最大限度地减少停机时间。
我看到过一些模糊的引用,其中提到可能存在 Tomcat 无法理解的 URL 重写设置,但始终找不到与此相关的具体内容。如果我逐一检查我们的重写规则,则每个规则都可以正常工作。
到目前为止,我甚至不知道该怎么处理它。三月份它经常发生这种情况(每天一次或更多),我们重新创建了网站 - 新的 Web 根目录、新的 IIS 配置等。同样的事情。最后我注意到服务器有待更新的重新启动,我们这样做之后,直到大约 2 周前它都很好。除了对网站进行标准代码更新外,IIS 或 Tomcat 配置没有任何变化。
这是最近一次停止 Tomcat 的 isapi_redirect_log。
[Sat Jul 02 13:44:40.070 2022] [7048:452] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 314863
[Sat Jul 02 13:44:40.070 2022] [7048:452] [info] init_jk::jk_isapi_plugin.c (3627): Starting Tomcat/ISAPI/isapi_redirector/1.2.46
[Sat Jul 02 13:44:40.096 2022] [7048:452] [info] init_jk::jk_isapi_plugin.c (3865): Tomcat/ISAPI/isapi_redirector/1.2.46 initialized
[Sat Jul 02 13:44:40.096 2022] [7048:1836] [info] jk_connector_CF_func::jk_isapi_plugin.c (3125): CF heartbeat started
[Sat Jul 02 13:45:14.574 2022] [7060:4948] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 13:45:15.101 2022] [7060:4948] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped
[Sat Jul 02 13:47:39.554 2022] [7056:6320] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 13:47:39.915 2022] [7056:6320] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped
[Sat Jul 02 13:48:14.095 2022] [2268:4200] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 13:48:14.993 2022] [2268:4200] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped
[Sat Jul 02 13:50:57.816 2022] [6480:5716] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 13:50:58.200 2022] [6480:5716] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped
[Sat Jul 02 13:52:03.676 2022] [7916:6864] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 314863
[Sat Jul 02 13:52:03.683 2022] [7916:6864] [info] init_jk::jk_isapi_plugin.c (3627): Starting Tomcat/ISAPI/isapi_redirector/1.2.46
[Sat Jul 02 13:52:03.708 2022] [7916:6864] [info] init_jk::jk_isapi_plugin.c (3865): Tomcat/ISAPI/isapi_redirector/1.2.46 initialized
[Sat Jul 02 13:52:03.708 2022] [7916:4216] [info] jk_connector_CF_func::jk_isapi_plugin.c (3125): CF heartbeat started
[Sat Jul 02 13:52:03.717 2022] [7916:6864] [info] ajp_process_callback::jk_ajp_common.c (2270): current reuse count is 1 of max reuse connection 250 and total endpoint count 5000
[Sat Jul 02 13:54:40.115 2022] [6040:6052] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 13:54:41.005 2022] [6040:6052] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped
[Sat Jul 02 14:00:33.757 2022] [1536:8096] [info] TerminateFilter::jk_isapi_plugin.c (2834): Tomcat/ISAPI/isapi_redirector/1.2.46 stopping
[Sat Jul 02 14:00:34.151 2022] [1536:8096] [info] TerminateFilter::jk_isapi_plugin.c (2868): CF heartbeat stopped