WAS v8.5 > Set up the application serving environment > Administer application servers > Configure transport chains

Configure inbound HTTP request chunking

Inbound HTTP request chunking is used to eliminate the restriction on messages greater than 10MB. The 10MB restriction is set because the entire message is buffered in the controller before the HTTP request is dispatched to the servant, therefore, the controller may fail with an out of memory condition when multiple large HTTP messages are processed simultaneously. With chunking enabled, the message is broken up into smaller pieces before it is processed by the web container and application. As a result, only one small chunk is buffered in memory at a time in the controller thus greatly reducing the amount of memory consumed by large HTTP messages. Applications do not require changes to enable inbound HTTP chunking. Inbound HTTP request chunking, is configured at the web container transport chain level. We can configure each web container chain to enable or disable chunking. When chunking is enabled for a particular chain, we can also configure the maximum chunk size for chunking enabled for each chain.

All HTTP web container chains have chunking enabled by default.

  1. In the dmgr console click Servers > Server Types > WebSphere application servers > server_name > Web Container Settings > Web container transport chains.

  2. Select a transport chain.

  3. Under Transport Channels select Web container inbound channel ( channel_name ).

  4. Under Additional Properties select Custom properties to configure inbound HTTP request message chunking. See the article, Web container transport chain custom properties for details about request message chunking settings.

    1. If the disableRequestMessageChunking property is already defined, select the disableRequestMessageChunking property from the list.

    2. If the disableRequestMessageChunking property is not defined, click new.

  5. On the settings page, do one of the following:

    • To enable request message chunking, enter the property, disableRequestMessageChunking in the Name field and the enter the value, false, in the Value field. Click Apply or OK so save the custom property changes.
    • To disable request message chunking, enter the property, disableRequestMessageChunking in the Name field and the enter the value, true, in the Value field. Click Apply or OK so save the custom property changes.

  6. Configure message chunk size if request message chunking is enabled. See the article, Web container transport chain custom properties for details on these settings.

    1. On the Custom Properties page, click New.

    2. On the settings page, enter the property, maxRequestMessageBodySize, in the Name field and the enter a size, specified in kilobytes, between 32 and 8192 in the Value field.

    3. Click Apply or OK.

  7. Click Save on the console task bar to save your configuration changes.

  8. Restart the server.


Related concepts:

Transport chains


Reference:

HTTP transport settings


Related information:

Web container inbound transport channel settings
Web container transport chain custom properties


+

Search Tips   |   Advanced Search