如何在Tomcat中设置AJP数据包大小? [英] How to set the AJP packet size in Tomcat?

查看:309
本文介绍了如何在Tomcat中设置AJP数据包大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此处的说明在AJP中设置maxPacketSize ...



AJP连接器文档



文档中指出我需要您必须还要更改Tomcat一侧的AJP连接器的packetSize属性!该属性packetSize仅在Tomcat 5.5.20+和6.0.2+中可用。





此文档讨论了如何在Tomcat中进行更改,但是我找不到实际需要更改的位置(哪些属性文件) / config文件等)



Tomcat AJP连接器



有人可以给我一个提示吗?



谢谢!

解决方案

我要找的是在哪里更改它。



<最后,这很简单在...

  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...

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

这篇关于如何在Tomcat中设置AJP数据包大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆