Server Does Not Receive Heartbeats
zx spectrum
webakaunt at gmail.com
Thu Oct 6 11:55:05 EDT 2011
A client logs in to the server, and server starts sending lots and lots of
messages back to the client. At the same time, a client needs to send
HEARTBEATs back to the server every X seconds.
login => [SERVER] <---------- [CLIENT]
send messages => [SERVER] ----------> [CLIENT]
send heartbeats => [SERVER] <---------- [CLIENT] ( at the same time )
Seems that heartbeat messages do not reach the server until it is done
sending all the messages. After all ( e.g. 10,000,000 ) messages are sent to
the client, the server logs that it is now receiving those heartbeats that
were sent before.
I can't really tell whether or not it is client's fault of not being able to
send the messages out (downstream) under a heavy load through the same
channel:
clientChannel.write( ChannelBuffers.wrappedBuffer( message ) )
Or it is the server, which is not capable to accept those heartbeats until
all messages are sent out to the client.
How can see where exactly "very late" heartbeats sit? And what is causing
the channel lock in the "client --> server" direction?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111006/f104b62b/attachment-0001.html
More information about the netty-users
mailing list