You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/12/14 13:56:18 UTC

[jira] [Closed] (THRIFT-4193) Lower the default maxReadBufferBytes for non-blocking servers

     [ https://issues.apache.org/jira/browse/THRIFT-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King, III closed THRIFT-4193.
--------------------------------------

> 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
>             Fix For: 0.11.0
>
>
> {{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.4.14#64029)