Netty Warm Up Stage
Replicator
webakaunt at gmail.com
Fri Oct 28 01:26:27 EDT 2011
@John,
Thanks for the insight. Do you a good place to start looking in order to
straighten up this performance curve? ( Netty / JVM / Network settings,
etc.. )?
@Norman,
Thanks for the pool buffers => are you aware of any settings I can try
in order to change the behavior?
@Arvid,
I start the timer whenever the first message arrives. The stats a pretty
simple really:
override def messageReceived( ctx: ChannelHandlerContext, event:
MessageEvent ) {
// extracts a message here, and does the business dispatch...
// then stats..
numberOfMessages = numberOfMessages + 1
if ( numberOfMessages == 1 ) { Timer.start() } else
if ( numberOfMessages % ( MessageLoad.MESSAGE_POOL_SIZE / 10 ) == 0
) {
logger.trace( "in memory queue has " + numberOfMessages + "
packets \t=> " +
"consuming rate: " + numberOfMessages / Timer.takingSeconds + "
packets/s" )
if ( numberOfMessages == MessageLoad.MESSAGE_POOL_SIZE ) {
Timer.stop()
logger.trace( "\n\n\toverall consuming rate is " +
numberOfMessages / Timer.tookSeconds + " packets/s" )
logger.trace( "\ttotal time: " + Timer.tookTimePrettyPrint +
"\n" )
}
}
Before the above "messageReceived", I have a FrameDecoder that is almost
identical to
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/codec/frame/FixedLengthFrameDecoder.html
That is pretty much it for the stats collection.
Thank you!
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-Warm-Up-Stage-tp6937538p6938887.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list