Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 95794 invoked from network); 2 Mar 2009 21:39:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 21:39:00 -0000 Received: (qmail 28633 invoked by uid 500); 2 Mar 2009 21:38:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28615 invoked by uid 500); 2 Mar 2009 21:38:49 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 28606 invoked by uid 99); 2 Mar 2009 21:38:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 13:38:49 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 21:38:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LeFq8-0006cF-Me for users@httpd.apache.org; Mon, 02 Mar 2009 13:38:20 -0800 Message-ID: <22297260.post@talk.nabble.com> Date: Mon, 2 Mar 2009 13:38:20 -0800 (PST) From: fredk2 To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fredk2@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Is there a known Header limit in mod_jk (or bug)? Hi, When I send a request to Tomcat via mod_jk I get the following error (code 413): Request Entity Too Large The requested resource /myapp/jsp/cookieshowvalue.jsp does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit. I total size of my headers/cookies is about 7.5KB on Solaris 10 and 9.8KB on RH Linux. I made sure that Apache's limit was set way above its default of 8K (LimitRequestFieldSize 25000) The mod_jk logfiles shows: [Mon Mar 02 14:42:22.856 2009] [27893:4136860560] [error] ajp_marshal_into_msgb::jk_ajp_common.c (417): failed appending the header value [Mon Mar 02 14:42:22.856 2009] [27893:4136860560] [info] ajp_service::jk_ajp_common.c (2042): Creating AJP message failed, without recovery [Mon Mar 02 14:42:22.856 2009] [27893:4136860560] [info] service::jk_lb_worker.c (1188): unrecoverable error 413, request failed. Client failed in the middle of request, we can't recover to another instance. [Mon Mar 02 14:42:22.856 2009] myWorker test.domain.com /myapp/jsp/cookieshowvalue.jsp 200 0.000316 0 HTTP/1.1 GET [Mon Mar 02 14:42:22.856 2009] [27893:4136860560] [info] jk_handler::mod_jk.c (2357): Aborting connection for worker=myWorker The problem is apparent with any version of Apache or mod_jk or Tomcat (I am testing with 2.2.11, 1.2.26, 6.0.14) I read the following doc http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html which says there is no limit: "This works on the assumption that no header names will have length greater than 0x9999 (==0xA000 - 1), which is perfectly reasonable, though somewhat arbitrary. (If you, like me, started to think about the cookie spec here, and about how long headers can get, fear not -- this limit is on header names not header values. It seems unlikely that unmanageably huge header names will be showing up in the HTTP spec any time soon)." I tried to read some of the source code jk_ajp_common.c ... but i cannot figure out where the limit for the header array(s) comes from. Any idea guidance troubleshooting tips are welcome... Regards - Fred -- View this message in context: http://www.nabble.com/Is-there-a-known-Header-limit-in-mod_jk-%28or-bug%29--tp22297260p22297260.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org