3

我们在虚拟机上使用 isapi 重定向器面临两个问题。

每隔几分钟,日志就会显示 http 错误 503:

...
[Sun Oct 14 14:25:02.465 2012] [8428:7856] [error] ajp_send_request::jk_ajp_common.c     (1662): (application) failed sending request on a fresh connection (recoverable), socket -1   (errno=54)
[Sun Oct 14 14:25:02.465 2012] [8428:7856] [error] ajp_service::jk_ajp_common.c (2643): (application) connecting to tomcat failed.
[Sun Oct 14 14:25:02.465 2012] [8428:7856] [error] HttpExtensionProc::jk_isapi_plugin.c (2328): service() failed with http error 503
...

日志充满了 WriteClient 错误

...
[Sun Oct 14 14:24:53.559 2012] [8428:1300] [error]  isapi_write_client::jk_isapi_plugin.c (1286): WriteClient failed with 10054 (0x00002746)
[Sun Oct 14 14:24:54.121 2012] [2424:7324] [error] isapi_write_client::jk_isapi_plugin.c (1286): WriteClient failed with 10054 (0x00002746)
[Sun Oct 14 14:24:54.199 2012] [8648:10692] [error] isapi_write_client::jk_isapi_plugin.c (1286): WriteClient failed with 10054 (0x00002746)
...

我们正在使用 Tomcat 5.5.26,它使用 VMvare 上的 Jakarta 连接器(isapi_redirector.dll)连接到 IIS 6.0(Windows 2003 Server)。

文件 worker.properties 是:

worker.list=application
worker.maintain=60

worker.application.type=ajp13

worker.application.host=127.0.0.1
worker.application.port=8009

connection_pool_size=400
connection_pool_minsize=200
connection_pool_timeout=600

server.xml包含:

...
<Connector port="8009" 
           emptySessionPath="true"
           enableLookups="false"
           redirectPort="8443"
           protocol="AJP/1.3"
           minSpareThreads="20"
           maxSpareThreads="100"
           maxThreads="400"
           bufferSize="8192"
           connectionTimeout="600000" 
           />
...
4

0 回答 0