[
https://issues.apache.org/jira/browse/STORM-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jungtaek Lim updated STORM-2158:
--------------------------------
Affects Version/s: 2.0.0
> OutOfMemoryError in Nimbus' SimpleTransportPlugin
> -------------------------------------------------
>
> Key: STORM-2158
> URL: https://issues.apache.org/jira/browse/STORM-2158
> Project: Apache Storm
> Issue Type: Bug
> Affects Versions: 2.0.0, 1.0.3, 0.10.3
> Environment: Unsecured Storm cluster.
> Reporter: Tibor Kiss
> Assignee: Tibor Kiss
> Fix For: 1.0.3, 0.10.3
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {{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)