+

Search Tips   |   Advanced Search

How do I increase the size of a WebSocket response?

For performance reasons, the default WebSocket message size cannot exceed 65 536 bytes (64 kB).

When a WebSocket response exceeds this size, the system returns a org.eclipse.jetty.websocket.api.MessageTooLargeExceptionOverview exception.

If you get an error like the one below:

2015/03/19 09:54:56 ERROR - neoload.Engine: WebSocket channel connection encountered an error org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message size [73525] exceeds maximum size [65536]

The workaround is to add a new property key in the controller.properties configuration file located in the \conf sub-folder of the NeoLoad installation root folder to configure a message size.

Create a [WebSocket] section or edit the existing one and add the following property key with the desired value for example here 100 000: websocket.max.text.message.size=100000.


Home