Roshan George created THRIFT-4193:
-------------------------------------

             Summary: Lower the default maxReadBufferBytes for non-blocking 
servers
                 Key: THRIFT-4193
                 URL: https://issues.apache.org/jira/browse/THRIFT-4193
             Project: Thrift
          Issue Type: Bug
          Components: Java - Library
            Reporter: Roshan George
            Assignee: Roshan George
            Priority: Minor


{{AbstractNonblockingServerArgs}} sets the default maximum read buffer size to 
{{Long.MAX_VALUE}}. Almost every machine will probably OOME before it succeeds 
in hitting that maximum. It should have a lower maximum, perhaps 256 MB like 
the maximum frame size in [the cpp 
implementation|https://github.com/apache/thrift/blob/master/lib/cpp/src/thrift/server/TNonblockingServer.h#L128]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to