我在这里有一个Web应用程序的JBoss。 tomcatconfiguration为使用ajp连接器。 传入连接通过apache反向代理隧道连接器。 现在我意识到,在负载较重的情况下,连接器会在“永不停息”模式下保持一连串的连接,而不会再释放它们。
与正常的HTTP连接器应用程序做得很好,但现在与ajp连接器,我们有常规的应用程序摊位。
有人可以给我一些build议从哪里开始寻找解决这个问题? 为什么连接器在空闲300秒后没有再次释放连接?
谢谢,克里斯
看看ajp连接器的文档:
connectionTimeout The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is infinite (ie no timeout).
http连接器的默认超时时间为60秒:
connectionTimeout The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is 60000 (ie 60 seconds).
所以请将connectionTimeout值更改为与您的环境相匹配的值。 但请务必按照本文档中的说明将值与connection_pool_timeout值或同等值同步