Set the message size limit on the Router or Message Processor

Edge for Private Cloud v. 4.17.05

To prevent memory issues in Edge, message payload size on the Router and Message Processor is restricted to 10MB. Exceeding those sizes results in a protocol.http.TooBigBody error.

Use the following properties to change the limits on the Router, Message Processor, or both. Both properties have a default value of "10m" corresponding to 10MB:

  • conf_http_HTTPRequest.body.buffer.limit
  • conf_http_HTTPResponse.body.buffer.limit

To set these properties:

  1. Open the router.properties file or message-processor.properties file in an editor. If the file does not exist, create it::
    > vi /opt/apigee/customer/application/router.properties

    or:
    > vi /opt/apigee/customer/application/message-processor.properties
  2. Set the properties as desired:
    conf_http_HTTPRequest.body.buffer.limit=15m
    conf_http_HTTPResponse.body.buffer.limit=15m
  3. Save your changes.
  4. Make sure the properties file is owned by the 'apigee' user:
    > chown apigee:apigee /opt/apigee/customer/application/router.properties
    or:
    > chown apigee:apigee /opt/apigee/customer/application/message-processor.properties
  5. Restart the Edge component:
    > /opt/apigee/apigee-service/bin/apigee-service edge-router restart

    or:
    > /opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart