In our testing we also found an additional opportunity for improvement. The
improvement comes from the recognizing a known limitation in Sun's
implementation of SSLEngine. The SSLEngine will return BUFFER_OVERFLOW
unless the buffer size is at least SSLSession.getPacketBufferSize(), which
is 16K. Consequently, regardless of how much data is produced, SSLEngine
always requires 16K buffers. To improve memory consumption, packet buffer
pool can be introduced. The pooled buffers will be used to decode/encode
data from/to SSLEngine. The produced data is then copied into smaller
private buffers and the common buffer is released to the pool. 


-----
Thanks,
Michael

[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Out-of-Memory-issues-with-our-mina-proxy-tf4664266s16868.html#a13888281
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to