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

Anthony Baker commented on GEODE-332:
-------------------------------------

What is the reasoning behind doing the socket close on a separate thread?

> Add thread pooling to peer to peer distribution layer
> -----------------------------------------------------
>
>                 Key: GEODE-332
>                 URL: https://issues.apache.org/jira/browse/GEODE-332
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Every time geode makes a peer-to-peer connection it creates a thread to read 
> from that connection. When the connection is closed it creates another thread 
> to do the socket close in the background just in case the close hangs. For 
> certain use cases the lifetime of these threads can be short but the rate at 
> which they are created can be high.
> It would both improve performance and improve memory footprint if these 
> threads were reused from a pool instead of creating them every time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to