Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-5476

Add a Tomcat "packetSize" parameter for container

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • UI
    • None

    Description

      The Grouper container ships with the default Tomcat packetSize in the AJP connector of 8192, with no way to override it. 

      This can become an issue in the case of posting a very large GSH template through the UI. An error in the logs will appear similar to the following:

      "Header message of length [18,850] received but the packetSize is only [8,192]"
       
      Also, if you try to copy the server.xml from the running container, then layer that into the container, tomcat will complain that multiple "maxHeaderCount" exists. If you remove it from the server.xml, it does not error. Does the thing that constructs server.xml not check for existence of parameters in the server.xml before adding them?
      Example of Connector definition with packetSize set:
      <Connector address="0.0.0.0" secretRequired="false" secure="true" scheme="https" URIEncoding="UTF-8" tomcatAuthentication="false" port="8009" protocol="AJP/1.3" redirectPort="-1" maxParameterCount="10000" packetSize="65536" />
       

      Attachments

        Activity

          People

            vivek.sachdeva@at.internet2.edu Vivek Sachdeva
            chris.hubing@at.internet2.edu Chris Hubing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: