How to set AJP packet size in Tomcat?

I followed the instructions to install maxPacketSize in AJP ...

AJP connector doc

The document states that I need "you must also change the packetSize attribute of your AJP connector on the Tomcat side! The packetSize attribute is only available in Tomcat 5.5.20+ and 6.0.2 +."

I do not know how to change this!

This document talks about changing it in Tomcat, but I can’t find out where I really need to change it (which properties / configuration file files, etc.)

Tomcat AJP Connector

Can someone give me a hint please?

Thanks!

+2
source share
2 answers

what I was looking for was where to change it.

in the end it was simple, it was in ...

C:\Tomcat\conf\server.xml 

Edit ...

 <!-- 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" /> 
+5
source

It is located directly on the second link ("Tomcat AJP Connector") in the "packetSize" section

+1
source

Source: https://habr.com/ru/post/893648/


All Articles