Message size exceeded

If you are using the Spark engine to run an AEL transformation and an error is generated indicating a decoded message was too big for the output buffer, you need to increase the maximum size (2 MB by default) of the message buffers for your AEL environment.

Perform the following steps to increase the message buffer limit:

  1. Navigate to the data-integration/adaptive-execution/config directory and open the application.properties file using a text editor.

  2. Enter the following incoming WebSocket message buffer properties, setting the same value for each property:

Property

Value

daemon.websocket.maxMessageBufferSize

The maximum size (in bytes) for the message buffer on the AEL daemon. For example, to allocate a 4 MB limit, set the memory value as shown here:```daemon.websocket.maxMessageBufferSize=4000000


</td></tr><tr><td>

**driver.websocket.maxMessageBufferSize**

</td><td>

The maximum size \(in bytes\) for the message buffer on the AEL Spark driver. For example, to allocate a 4 MB limit, set the memory value as shown here:```
**driver.websocket.maxMessageBufferSize**=4000000

4. Save and close the file.

When the AEL daemon submits the AEL Spark driver application, it passes the driver’s maximum message buffer size value as part of the submit; then, when the driver application is started, it receives the maximum buffer size value sent by the daemon.

Last updated

Was this helpful?