Tibor Kiss created STORM-2158:
---------------------------------

             Summary: OutOfMemoryError in Nimbus' SimpleTransportPlugin
                 Key: STORM-2158
                 URL: https://issues.apache.org/jira/browse/STORM-2158
             Project: Apache Storm
          Issue Type: Bug
    Affects Versions: 0.10.3
         Environment: Unsecured Storm cluster.
            Reporter: Tibor Kiss
            Assignee: Tibor Kiss
             Fix For: 0.10.3


{{OutOfMemoryError}} is thrown by Nimbus' {{SimpleTransportPlugin}} if 
malformed Thrift request is posted:
{code}
echo "Hello" | nc localhost 6627
{code}

In nimbus.log:
{noformat}
2016-10-20 12:54:09.978 b.s.d.nimbus [INFO] Starting Nimbus server...
2016-10-20 12:54:42.926 o.a.t.s.THsHaServer [ERROR] run() exiting due to 
uncaught error
java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57) 
~[?:1.8.0_92-internal]
        at java.nio.ByteBuffer.allocate(ByteBuffer.java:335) 
~[?:1.8.0_92-internal]
        at 
org.apache.thrift7.server.AbstractNonblockingServer$FrameBuffer.read(AbstractNonblockingServer.java:371)
 ~[storm-core-0.10.3-SNAPSHOT.jar:0.10.3-SNAPSHOT]
        at 
org.apache.thrift7.server.AbstractNonblockingServer$AbstractSelectThread.handleRead(AbstractNonblockingServer.java:203)
 ~[storm-core-0.10.3-SNAPSHOT.jar:0.10.3-SNAPSHOT]
        at 
org.apache.thrift7.server.TNonblockingServer$SelectAcceptThread.select(TNonblockingServer.java:207)
 ~[storm-core-0.10.3-SNAPSHOT.jar:0.10.3-SNAPSHOT]
        at 
org.apache.thrift7.server.TNonblockingServer$SelectAcceptThread.run(TNonblockingServer.java:158)
 [storm-core-0.10.3-SNAPSHOT.jar:0.10.3-SNAPSHOT]
2016-10-20 12:54:42.942 b.s.d.nimbus [INFO] Shutting down master
2016-10-20 12:54:43.003 b.s.d.nimbus [INFO] Shut down master
{noformat}

The problem is caused by the lack of specification of the 
{{maxReadBufferBytes}} of {{THsHaServer}}'s arguments.



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

Reply via email to