Question

In my production server I was getting the below exception

weblogic.socket.MaxMessageSizeExceededException: Incoming message of size: '10000080' bytes exceeds the configured maximum of: '10000000' bytes for protocol: 't3'.

To resolve this I increased the value of -Dweblogic.MaxMessageSize.

My question is what should be the optimum size of this flag? I just can not keep on increasing it to resolve this issue in future. Is there another flag which will help me set this flag to a particular value and also the application runs without any issue.

Was it helpful?

Solution

There is no global optimum size. They probably have 10000000 as the default because they assume that'll be most peoples max. Realistically it will be limited to whatever your producer is sending as a max. Is there a limit for the producer in what they can send?

In general, you want to avoid large objects. but you can't always.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top