jira-importer opened a new issue, #1003: URL: https://github.com/apache/httpcomponents-core/issues/1003
**[Todor Bonchev](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=todorbonchev)** opened **[HTTPCORE-485](https://issues.apache.org/jira/browse/HTTPCORE-485?redirect=false)** and commented Currently for each remote connection we make an SSLIOSession. Each SSLIOSession has 4 buffers: private final SSLBuffer inEncrypted; private final SSLBuffer outEncrypted; private final SSLBuffer inPlain; private final SSLBuffer outPlain; And each of these buffers occupies 16K (64K per remote connection). Our application uses NIO for long polling and we have 9000 idle long polling connections waiting for notifications. This makes 9000 * 64K = 576 000K (576MB). I checked the code and saw that the outPlain buffer is not used. I tested the code without it and everything worked fine. If we remove this buffer it will save 25% of the memory from the buffers used for the remote connections. In our case this is 144MB. Here is a proposed patch for SSLIOSession.java that removes the unused buffer. Regards, Todor Bonchev --- **Affects:** 4.4.6 **Attachments:** - [SSLIOSession.java.patch](https://issues.apache.org/jira/secure/attachment/12883743/SSLIOSession.java.patch) (_3.08 kB_) **Backported to:** [4.4.7](https://github.com/apache/httpcomponents-core/milestone/44?closed=1) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
