[
https://issues.apache.org/jira/browse/THRIFT-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899070#comment-13899070
]
Andreas Sjöholm commented on THRIFT-2319:
-----------------------------------------
I can get this, reproducible, if either client or server is set to use SSL but
the other end is not.
> OutOfMemory thrown in TBinaryProtocol.readMessageBegin
> ------------------------------------------------------
>
> Key: THRIFT-2319
> URL: https://issues.apache.org/jira/browse/THRIFT-2319
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Affects Versions: 0.9, 0.9.1
> Reporter: Georgi Danov
>
> Without any warnings or major changes we received OOM on two different prod
> servers with the following stack dump from all threads
> {code}
> Exception in thread "pool-3-thread-8" java.lang.OutOfMemoryError: Java heap
> space
> at
> org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:339)
> at
> org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:202)
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
> at
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:225)
> 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:744)
> {code}
> Heap dumps show that there is plenty of free heap. We could not reproduce it.
> Server A runs v0.9 and Server B runs v0.9.1. The two servers collaborate and
> have different responsibilities. The exception happens on both ends almost in
> the same time.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)