Search code examples
javasocketspoolsocketchannel

Manage Client Socket Pool


I need to manage long running TCP socket connections to an external server from my Java application. I'm looking for a good socket pool so I will be able to re-use the sockets.

There is another solution than org.apache.commons.pool2 ?


Solution

  • Here are some object pool implementations you may try:

    I suggest you to benchmark the object pool implementations in order to find the most appropriate one for your project.