论坛首页 Java企业应用论坛

mod_jk负载均衡 Request Entity Too Large

浏览 3577 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-04-12  

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

 

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  不再报异常了

  • 大小: 202.1 KB
  • 大小: 10.7 KB
  • 大小: 12.7 KB
  • 大小: 16.5 KB
   发表时间:2012-04-16  
我是在想不通: 用了nginx, 还有没有必要用apache mod_jk..
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics