[JBoss JIRA] Commented: (NETTY-310) Memory leak in netty-3.2.0.BETA1.jar
Benoit Sigoure (JIRA)
jira-events at lists.jboss.org
Sat May 1 23:21:05 EDT 2010
[ https://jira.jboss.org/jira/browse/NETTY-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528518#action_12528518 ]
Benoit Sigoure commented on NETTY-310:
--------------------------------------
And here's an excerpt of the output of jmap showing what I meant by "The heap contained a very large number of objects owned by Netty". I believe that "[B" means "byte array" but I'm not sure.
$ jmap -histo:live 3946
num #instances #bytes class name
----------------------------------------------
1: 301901 24554040 [B
2: 299819 19188416 org.jboss.netty.channel.DefaultChannelFuture
3: 299823 14391504 org.jboss.netty.util.internal.LinkedTransferQueue$Node
4: 299819 14391312 org.jboss.netty.channel.DownstreamMessageEvent
5: 299829 11993160 org.jboss.netty.buffer.BigEndianHeapChannelBuffer
6: 18500 2318080 <constMethodKlass>
> Memory leak in netty-3.2.0.BETA1.jar
> ------------------------------------
>
> Key: NETTY-310
> URL: https://jira.jboss.org/jira/browse/NETTY-310
> Project: Netty
> Issue Type: Bug
> Affects Versions: 3.2.0.BETA1
> Environment: $ uname -a
> Darwin hactar.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
> $ javac -version
> javac 1.6.0_17
> $ java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
> Reporter: Benoit Sigoure
> Assignee: Trustin Lee
> Priority: Blocker
> Attachments: 3.1-gc-log.txt, 3.2-gc-log.txt, TestServer.java
>
>
> I'm currently writing an application against 3.2.0.BETA1 that kept dying with OutOfMemoryError. The heap contained a very large number of objects owned by Netty (DefaultChannelFuture, LinkedTransferQueue$Node, DownstreamMessageEvent, BigEndianHeapChannelBuffer). After being puzzled for a while, I backported it against 3.1.5.GA and the leak disappeared. I couldn't reproduce the problem so instead I trimed down my code as much as I could and ended up with 110 lines in 4 classes, using no external dependencies other than Netty and the JDK. When compiled and run against 3.1.5.GA, the heap size remains mostly constant. When compiled and run against 3.2.0.BETA1, the heap keeps growing until the JVM is struggling, doing full GCs all the time.
> I'm going to attach the code and GC log to this issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list