You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/10 21:25:04 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16005470#comment-16005470 ] 

ASF GitHub Bot commented on THRIFT-4193:
----------------------------------------

Github user roshan commented on the issue:

    https://github.com/apache/thrift/pull/1264
  
    It is configurable using the `maxReadBufferBytes` argument, but the default is just really high.


> 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)