memory leak? a problem about DownstreamMessageEvent

chris zz12847643 at gmail.com
Mon Jan 3 00:06:44 EST 2011


i'm developing a webgame,when i was doing performance testing(based on 8k
online user)  for one day(about 15 hours), 
i found  memory size jvm used was 4.8G ,i dump the memory by jmap,and
startup the jhat viewer,  the top 12 classes as follower:

307739 instances of class org.jboss.netty.channel.DownstreamMessageEvent 
297635 instances of class
org.jboss.netty.util.internal.LinkedTransferQueue$Node 
227420 instances of class org.jboss.netty.buffer.BigEndianHeapChannelBuffer 
159719 instances of class org.jboss.netty.channel.DefaultChannelFuture 
152708 instances of class
org.jboss.netty.channel.socket.nio.SocketSendBufferPool$PooledSendBuffer 
138592 instances of class
org.jboss.netty.channel.DefaultWriteCompletionEvent 
132096 instances of class org.jboss.netty.buffer.DuplicatedChannelBuffer 
120310 instances of class org.jboss.netty.buffer.DynamicChannelBuffer 
107109 instances of class org.jboss.netty.channel.UpstreamMessageEvent 
76816 instances of class
org.jboss.netty.util.internal.ConcurrentHashMap$Segment 
76816 instances of class
[Lorg.jboss.netty.util.internal.ConcurrentHashMap$HashEntry; 
65074 instances of class
org.jboss.netty.util.internal.ConcurrentHashMap$ValueIterator 

i can not get why the instance count of DownstreamMessageEvent and
UpstreamMessageEvent is so high?  can you  help me?  
thanks all.
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/memory-leak-a-problem-about-DownstreamMessageEvent-tp5880466p5880466.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list