Georgi Danov created THRIFT-2319:
------------------------------------

             Summary: OutOfMemory thrown in TBinaryProtocol.readMessageBegin
                 Key: THRIFT-2319
                 URL: https://issues.apache.org/jira/browse/THRIFT-2319
             Project: Thrift
          Issue Type: Bug
    Affects Versions: 0.9.1, 0.9
            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)

Reply via email to