increasing memory usage
cyrus77
mahmoodr at kth.se
Wed Jan 27 06:38:39 EST 2010
Hi,
Thanks for your reply,
Unfortunately yes, I get OutOfMemoryError.
How can we investigate it? any idea?
Thanks,
Cyrus
On Jan 27, 2010, at 11:31 AM, Trustin Lee [via Netty Forums and Mailing Lists] wrote:
> If you do not get an OutOfMemoryError, it is safe to decrease the
> maximum heap size of the VM with -Xmx option. I'd cut down to 96MB
> (i.e. -Xmx96m).
>
> If you get an OutOfMemoryError eventually, that's more like a memory
> leak that needs more investigation.
>
> cyrus77 wrote:
>
> > Hi,
> >
> > I am using Netty to develop a simple TCP client and connect to a server to
> > receive data 24x7. The data being transferred is not much, its around 100KB
> > to 200KB per minute.
> >
> > The problem is that the client starts allocating memory gradually and after
> > some hours or a day (depending on how much data is being sent by the server
> > to this client) the allocated heap memory reaches up to 500 MB!
> >
> > The thing is that even if I do nothing with the message (do nothing in
> > messageReceived method) the problem still exist!
> >
> > I attached the code if you would like to take a look.
> > http://n2.nabble.com/file/n4466226/code.java code.java
> >
> > Do you have any idea what is wrong with it?
> >
> > Thanks,
> > Cyrus
> >
> --
> what we call human nature in actuality is human habit
> http://gleamynode.net/
>
>
>
>
> _______________________________________________
> netty-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/netty-users
>
> signature.asc (268 bytes) Download Attachment
> — Trustin Lee, http://gleamynode.net/
>
>
> View message @ http://n2.nabble.com/increasing-memory-usage-tp4466226p4466366.html
> To unsubscribe from increasing memory usage, click here.
>
--
View this message in context: http://n2.nabble.com/increasing-memory-usage-tp4466226p4466627.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list