[undertow-dev] AS7 Subsystem - OutOfMemoryError: Direct buffer memory

Stuart Douglas sdouglas at redhat.com
Mon Jan 21 05:29:00 EST 2013


It looks like the default buffer size was set to high.

I have updated this in upstream, or you can just increase -Xmx.

Stuart

Darran Lofthouse wrote:
> Hello all,
>
> Making use of the subsystem integration for Undertow I am getting the
> error at the bottom of this message each time a request is received by
> the server.
>
> I am using Fedora 17 (About to move to 18) but I know quite a few
> engineers are on OSX so just wanted to check if anyone else is
> experiencing this on other operating systems?  Or is it just mine? ;-)
>
> I should add this is a cleanly built AS7/master, Undertow/master,
> Undertow-Subsystem/master, AS7 started using standalone-undertow.xml and
> one simple war deployed - no other changes have been made anywhere.
>
> Regards,
> Darran Lofthouse.
>
>
> 23:25:31,364 ERROR [org.xnio.listener] (Undertow read-1) A channel event
> listener threw an exception: java.lang.OutOfMemoryError: Direct buffer
> memory
> 	at java.nio.Bits.reserveMemory(Bits.java:658) [rt.jar:1.7.0_04]
> 	at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
> [rt.jar:1.7.0_04]
> 	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:306)
> [rt.jar:1.7.0_04]
> 	at org.xnio.BufferAllocator$2.allocate(BufferAllocator.java:57)
> [xnio-api-3.1.0.Beta6.jar:3.1.0.Beta6]
> 	at org.xnio.BufferAllocator$2.allocate(BufferAllocator.java:55)
> [xnio-api-3.1.0.Beta6.jar:3.1.0.Beta6]
> 	at org.xnio.ByteBufferSlicePool.allocate(ByteBufferSlicePool.java:93)
> [xnio-api-3.1.0.Beta6.jar:3.1.0.Beta6]
> 	at
> io.undertow.server.HttpReadListener.handleEvent(HttpReadListener.java:89) [undertow-core-1.0.0.Alpha1-SNAPSHOT.jar:1.0.0.Alpha1-SNAPSHOT]
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list