httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fredk2 <>
Subject [users@httpd] Is there a known Header limit in mod_jk (or bug)?
Date Mon, 02 Mar 2009 21:38:20 GMT


When I send a request to Tomcat via mod_jk I get the following error (code

Request Entity Too Large
The requested resource
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
[Mon Mar 02 14:42:22.856 2009] [27893:4136860560] [info]
ajp_service::jk_ajp_common.c (2042): Creating AJP message failed, without
[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
[Mon Mar 02 14:42:22.856 2009] myWorker
/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 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:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message