开发者

How to set the AJP packet size in Tomcat?

开发者 https://www.devze.com 2022-12-11 14:29 出处:网络
I\'ve followed the instructions here for setting the maxPacketSize in AJP... AJP connector doc It states in the doc that I need to \"you must also change the packetSize attribute of your AJP connect

I've followed the instructions here for setting the maxPacketSize in AJP...

AJP connector doc

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 开发者_JAVA技巧etc)

Tomcat AJP Connector

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" />


It's right there on the second link ("Tomcat AJP Connector") under "packetSize"

0

精彩评论

暂无评论...
验证码 换一张
取 消