mod_jk负载均衡 Request Entity Too Large

1.原文链接

http://feitianbenyue.iteye.com/blog/1484293


今天客服说 好多页面 出现这样的问题

 

Request Entity Too Large
The requested resource
/product/453974-600/detail.htm
does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

 


但是我们这边(我,尤老板都访问很正常),

 

网上Google,看到了这个帖子

 http://blog.csdn.net/linminqin/article/details/6362968

 

很遗憾的是 ,这个帖子引用的
http://builddeploy.blogspot.com/2009/04/resolving-http-error-413-request-entity.html

这个地址被墙了

但是基本上知道 要在workers.properties 里面加  max_packet_size 这个参数 ,

max_packet_size

AJP,SUB

8192

This attribute sets the maximal AJP packet size in Bytes.

The maximum value is 65536.

If you change it from the default, 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+.

 

Normally it is not necessary to change the maximum packet size.

Problems with the default value have been reported when sending certificates or certificate chains.

 

This feature has been added in jk 1.2.19.

 

这个参数说的很清楚, 一般情况不需要配置这个参数(是什么原因导致2班情况要配置的呢?)

 

先tomcat ajp connector 加入 packetSize=”65536”

 


 

再在 workers.properties 加入


 

重启tomcat,重启apache

 

发现


Mod_jk.log  不再报异常了


2.原文链接

http://blog.csdn.net/linminqin/article/details/6362968


今天使用网站配置流程的时候,网站突然出现413 Request Entity Too Large错误,网络上查了下apache,都是说修改php配置错误之类的,但是网站用的是java,把我给郁闷的。后来带我的老板跟我说很可能是apache跟tomcat连接配置的问题,google关键字加上tomcat,果然查了出来(http://builddeploy.blogspot.com/2009/04/resolving-http-error-413-request-entity.html),在配置apache跟tomcat负载均衡的workers.properties配置文件上加上 worker.web1.max_packet_size=65536和 worker.web2.max_packet_size=65536,然后重启apache,搞定。

3.如何配置workers.properties

原文链接:http://www.xuephp.com/main/detail.php?cid=40711



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值