You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NioMessageUnsafe.read() reads as many messages as possible. When a peer sends a lot of messages and NioMessageUnsafe.read() keeps reading them into a MessageList, it can end up with an OutOfMemoryError.
We need an additional configuration parameter called 'maxMessagesPerReadto limit the number of messages in aMessageList`.
…d adjust the default from 16 to 1
- Fixes#1486
- Decreased the default from 16 to 1 because unnecessary extra read on req-res protocols results in lower throughput due to extra syscalls.
NioMessageUnsafe.read()
reads as many messages as possible. When a peer sends a lot of messages andNioMessageUnsafe.read()
keeps reading them into aMessageList
, it can end up with anOutOfMemoryError
.We need an additional configuration parameter called 'maxMessagesPerRead
to limit the number of messages in a
MessageList`.Reported by @dantran
The text was updated successfully, but these errors were encountered: