[ 
https://issues.apache.org/jira/browse/STORM-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646684#comment-15646684
 ] 

Cui Zhijing edited comment on STORM-662 at 11/8/16 6:35 AM:
------------------------------------------------------------

please try the off heap memory configuration in worker.childops : 
-XX:MaxDirectMemorySize=xxx


was (Author: jackcptdev):
please try the off head configuration in worker.childops : 
-XX:MaxDirectMemorySize=xxx

> java.lang.OutOfMemoryError: Direct buffer memory 
> -------------------------------------------------
>
>                 Key: STORM-662
>                 URL: https://issues.apache.org/jira/browse/STORM-662
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-core
>            Reporter: Adrian Seungjin Lee
>
> I'm using Storm 0.9.3 and facing this error in running topology.
> Below is our custom configuration but it's pretty small.
> supervisor.slots.ports:
>     - 6700
> worker.childopts:
>     -Xmx4g -Xms4g
>     -server -Djava.net.preferIPv4Stack=true
> topology.worker.shared.thread.pool.size: 512
> storm.messaging.netty.max_retries: 100
> Feb 08, 2015 5:17:05 PM 
> org.apache.storm.netty.channel.socket.nio.AbstractNioSelector WARNING: 
> Unexpected exception in the selector loop. java.lang.OutOfMemoryError: Direct 
> buffer memory at java.nio.Bits.reserveMemory(Bits.java:658) at 
> java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) at 
> java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:306) at 
> org.apache.storm.netty.channel.socket.nio.SocketReceiveBufferAllocator.newBuffer(SocketReceiveBufferAllocator.java:64)
>  at 
> org.apache.storm.netty.channel.socket.nio.SocketReceiveBufferAllocator.get(SocketReceiveBufferAllocator.java:44)
>  at 
> org.apache.storm.netty.channel.socket.nio.NioWorker.read(NioWorker.java:62) 
> at 
> org.apache.storm.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
>  at 
> org.apache.storm.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
>  at 
> org.apache.storm.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
>  at 
> org.apache.storm.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) 
> at 
> org.apache.storm.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
>  at 
> org.apache.storm.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to