Read starvation
Norman Maurer
norman.maurer at googlemail.com
Thu Oct 13 02:21:59 EDT 2011
Hi there,
sorry for the late response. But better late then never ;)
Did you try to adjust the write buffer size so the isWriteable(..)
will return false in a quicker manner ?
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/socket/nio/NioSocketChannelConfig.html
Bye,
Norman
2011/10/10 ArvidSvensson <arvid.svensson at gmail.com>:
> Hi!
>
> I'm writing lots of messages from at Netty NIO server to a couple of
> thousand clients.
> Whenever I get an ChannelFutureListener#operationComplete from a write's
> ChannelFuture I write new messages at hand (if the channel is writable).
> I also write new messages at hand when getting
> SimpleChannelHandler#channelInterestChanged indicating that the channel is
> writable.
>
> The problem is that I starve read operations when doing this. The clients
> are sending heartbeats that the server doesn't let in in time.
> All the I/O workers are busy writing messages. How can I make netty fair on
> the reads?
>
> If I don't utilize the operationComplete/channelInterestChanged callbacks I
> can't get any speed out netty (see my initial problem at
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Slow-writes-from-outside-an-I-O-worker-td6817213.html#a6820504
> ).
>
>
> Regards,
> Arvid
>
>
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Read-starvation-tp6876802p6876802.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
More information about the netty-users
mailing list