<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">here is the heap dump for&nbsp;-Xmx96m:<br><div><b><a href="http://tinyurl.com/yeggxb7">http://tinyurl.com/yeggxb7</a></b></div><div><div><div><div><div><b><br></b></div></div><br>
</div>
<br><div><div>On Jan 27, 2010, at 12:53 PM, Trustin Lee (이희승) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Oh, that's too bad. &nbsp;Then could you post the heap dump file? &nbsp;You can<br>configure your VM to generate heap dump on OutOfMemoryError:<br><br> &nbsp;&nbsp;&nbsp;-XX:+HeapDumpOnOutOfMemoryError<br><br>For more information on generating heap dump, read this article:<br><br> &nbsp;&nbsp;&nbsp;<a href="http://blogs.sun.com/alanb/entry/heap_dumps_are_back_with">http://blogs.sun.com/alanb/entry/heap_dumps_are_back_with</a><br><br>I would still recommend to decrease the max heap size so that you can<br>get OOME sooner so that heap dump is generated sooner.<br><br>cyrus77 wrote:<br><blockquote type="cite">Hi, <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for your reply,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Unfortunately yes, I get OutOfMemoryError.<br></blockquote><blockquote type="cite">How can we investigate it? any idea? <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Cyrus<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jan 27, 2010, at 11:31 AM, Trustin Lee [via Netty Forums and Mailing Lists] wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">If you do not get an OutOfMemoryError, it is safe to decrease the <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">maximum heap size of the VM with -Xmx option. &nbsp;I'd cut down to 96MB <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(i.e. -Xmx96m). <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">If you get an OutOfMemoryError eventually, that's more like a memory <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">leak that needs more investigation. <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">cyrus77 wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hi, <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I am using Netty to develop a simple TCP client and connect to a server to <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">receive data 24x7. The data being transferred is not much, its around 100KB <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">to 200KB per minute. <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The problem is that the client starts allocating memory gradually and after <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">some hours or a day (depending on how much data is being sent by the server <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">to this client) the allocated heap memory reaches up to 500 MB! <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The thing is that even if I do nothing with the message (do nothing in <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">messageReceived method) the problem still exist! <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I attached the code if you would like to take a look. <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://n2.nabble.com/file/n4466226/code.java">http://n2.nabble.com/file/n4466226/code.java</a> code.java <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Do you have any idea what is wrong with it? <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Thanks, <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Cyrus <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">what we call human nature in actuality is human habit <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://gleamynode.net/">http://gleamynode.net/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">netty-users mailing list <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">[hidden email] <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> signature.asc (268 bytes) Download Attachment<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">— Trustin Lee, <a href="http://gleamynode.net/">http://gleamynode.net/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">View message @ <a href="http://n2.nabble.com/increasing-memory-usage-tp4466226p4466366.html">http://n2.nabble.com/increasing-memory-usage-tp4466226p4466366.html</a> <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">To unsubscribe from increasing memory usage, click here.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>-- <br>what we call human nature in actuality is human habit<br><a href="http://gleamynode.net/">http://gleamynode.net/</a><br><br><br><span>&lt;signature.asc&gt;</span>_______________________________________________<br>netty-users mailing list<br>netty-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/netty-users</div></blockquote></div><br></div></div></body></html>