问题描述
我已按照此处的说明在AJP中设置maxPacketSize ...
文档中指出我需要您必须还要更改Tomcat一侧的AJP连接器的packetSize属性!该属性packetSize仅在Tomcat 5.5.20+和6.0.2+中可用。
此文档讨论了如何在Tomcat中进行更改,但是我找不到实际需要更改的位置(哪些属性文件) / config文件等)
有人可以给我一个提示吗?
谢谢!
我要找的是在哪里更改它。
C:\Tomcat\conf\server.xml
更改...
< ;!-在端口8009上定义Coyote / JK2 AJP 1.3连接器->
<连接器端口= 8009
enableLookups = false redirectPort = 8443 debug = 0
protocol = AJP / 1.3 />
至
<!-在端口8009上定义Coyote / JK2 AJP 1.3连接器->
<连接器端口= 8009
enableLookups = false redirectPort = 8443 debug = 0 packetSize = 21000
protocol = AJP / 1.3 />
I've followed the instructions here for setting the maxPacketSize in AJP...
It states in the doc that I need to "you must also change the packetSize attribute of your AJP connector on the Tomcat side! The attribute packetSize is only available in Tomcat 5.5.20+ and 6.0.2+."
I have no idea how to change it though!
This doc talks about changing it in Tomcat, but I can't find out WHERE I actually need to change it (what properties file/config file etc)
Can anyone give me a clue please?
Thanks!
what I was looking for was where to change it.
in the end it was simple, it was in...
C:\Tomcat\conf\server.xml
Change...
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" />
to
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0" packetSize=21000
protocol="AJP/1.3" />
这篇关于如何在Tomcat中设置AJP数据包大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!