About HighWaterMark and LowWaterMark

"Trustin Lee (이희승)" trustin at gmail.com
Mon May 3 04:39:16 EDT 2010


You need to check if the write queue grew too big by calling
Channel.isWritable(), and resume generating outbound traffic on a
channelInterestChanged event.  You could take a look into the Discard
client example.

HTH,
Trustin

lyl wrote:
> In other words, that is, how to prevent OutOfMemoryError caused by rapid data
> writing(such as a dead cycle writing). When the messageQueue is too long,
> the memory consumption would be very hign. Is there any method or mechanism
> to control the writing ratio?
> 
> Any reply is appreciated!

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100503/578f6ee6/attachment-0001.bin 


More information about the netty-users mailing list