mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: Out of Memory issues with our mina proxy
Date Wed, 07 Nov 2007 16:47:49 GMT
On 11/7/07, Michael Matovsky <michael.matovsky@gmail.com> wrote:
> We are observing a significant overhead for SSL connections.
> From our investigation, every SSL connection requires an SSLHandler, which
> contains 3 buffers:
> - Two buffers for encrypted inbound and outbound packets, respectively.
> - One buffer for decrypted application data
> The buffer sizes are computed as follows:
> Packet buffer size = the current size of the largest SSL/TLS packet that is
> expected when using this session (SSLSession.packetBufferSize())
> Application buffer size = 2 x packet buffer size
> In Sun JSSE the SSLSession.packetBufferSize() equals to 16K, which implies a
> total of 64K SSL buffer space per connection. For 10K active this means that
> 640MB of memory is required just for SSL buffers.
> Such overhead really limits the number of concurrent connections an
> application can support. Is there any way to reduce this overhead? Or is
> this a known limitation?

I think we can resolve this issue by dynamically re-adjusting the
buffer capacity. (or allocation-on-demand?)  Could you open a JIRA


what we call human nature is actually human habit
PGP Key ID: 0x0255ECA6

View raw message