failed appending the query string of length 7295 in Apache Tomcat

Vamsi D
Vamsi D used Ask the Experts™
on
We're getting the following error when the HTTP GET request is large:
mod_jk.log:[Wed Oct 18 11:37:20.232263 2017][12082:139812138850048] ajp_marshal_into_msgb::jk_ajp_common.c (517): failed appending the query string of length 7295

I've found several references to this error and I've tried the following, but it did not work:
1. Added worker.template.max_packet_size=65536 to this file: workers.properties
2. Added packetSize to file /usr/apache-tomcat/conf/server.xml:
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" address="127.0.0.1" protocol="org.apache.coyote.ajp.AjpNioProtocol"
                        socket.directBuffer="true"
                        URIEncoding="UTF-8" redirectPort="8443" packetSize="65536" connectionTimeout="120000"  />
3. Added LimitRequestLine 65536 LimitRequestBody 0 LimitRequestFieldSize 65536 LimitRequestFields 10000 (to /nbsnas/http/conf/httpd.conf file)
Restarted Apache for each of the above and also when all of them are set to the values above.

I'm still getting the same error.
Any ideas/recommendations is greatly appreciated.
thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Principal Software Engineer
Commented:
You might try setting

JkLogLevel trace

Open in new window


in the config file.  This should let you know exactly where in mod_jk the problem is occurring, and you can then read the source to see what's going on or add more detailed debugging info to the mod_jk source.

Of course, this is going to generate enormous logs very rapidly in production -- so you want to try it only on a testbed system and feed it only the offending request.
Dr. KlahnPrincipal Software Engineer

Commented:
No further input from requester.  Troubleshooting approach that would reveal the source of the problem was provided.  Points assigned to sole responder.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial