OutOfMemoryException using ChunkedWriteHandler
"Trustin Lee (이희승)"
trustin at gmail.com
Tue Apr 6 02:08:36 EDT 2010
Could you attach the heap dump? You can configure your VM to drop the
heap dump on OutOfMemoryError with the following option:
-XX:+HeapDumpOnOutOfMemoryError
Thanks,
Trustin
nollie wrote:
> After running my prototype a zillion times, I got these messages written to
> stderr a few seconds apart.
>
> Exception in thread "pool-8-thread-1" java.lang.OutOfMemoryError: Java heap
> space
> Exception in thread "pool-11-thread-1" java.lang.OutOfMemoryError: Java heap
> space
> Exception in thread "pool-12-thread-1" java.lang.OutOfMemoryError: Java heap
> space
>
> After the third one, both the client and the server hung and did not notice
> the idle state and quit. The server was just starting to send a 1GB file.
>
> I've been reading the forums and I know I should check channel.isWritable()
> if I'm doing something custom and that I should be using ChunkedWriteHandler
> to avoid the issue entirely. As I started with the static file server
> example code I'm already using ChunkedWriteHandler so I'm not sure what's
> going on.
>
> The error occurred when I was running my unit tests locally (client and
> server on the same machine) from within IDEA. I have run those tests for a
> couple weeks without this issue, so I'm not sure how to recreate the issue.
> If anyone has ideas on how to try and recreate the error in a meaningful way
> and communicate the results I'd be happy to try.
>
> Jon
>
--
what we call human nature in actuality is human habit
http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100406/05642f02/attachment-0001.bin
More information about the netty-users
mailing list