[ 
https://issues.apache.org/jira/browse/THRIFT-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009349#comment-14009349
 ] 

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

GitHub user Fuud opened a pull request:

    https://github.com/apache/thrift/pull/129

    THRIFT-2551 OutOfMemoryError kills serve thread

    THRIFT-2551 OutOfMemoryError "unable to create new native thread" kills 
serve thread.
    
    If executor can not create new thread (because of exceed descriptors limit 
for example) it throws OutOfMemoryError. This case is same as if 
RejectedExecutionException is thrown from executor: we can wait and retry.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Fuud/thrift master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/129.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #129
    
----
commit fe11c04eb3e4b7c1d1894a72a8ff85e19a1ce2e1
Author: Fuud <fuudtorrent...@gmail.com>
Date:   2014-05-27T06:45:13Z

    THRIFT-2551 OutOfMemoryError "unable to create new native thread" kills 
serve thread

commit e4043491c362d67f6dee974e6e8e8bc9b858193b
Author: Fuud <fuudtorrent...@gmail.com>
Date:   2014-05-27T06:50:26Z

    THRIFT-2551 OutOfMemoryError "unable to create new native thread" kills 
serve thread

----


> OutOfMemoryError "unable to create new native thread" kills serve thread
> ------------------------------------------------------------------------
>
>                 Key: THRIFT-2551
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2551
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Fuud
>
> TThreadPoolServer:
> if executorService_.execute throws OutOfMemoryError, serve thread will be 
> terminated, socket will not be closed and no new incoming connection will be 
> accepted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to