[ 
http://issues.apache.org/jira/browse/DIRMINA-176?page=comments#action_12369968 
] 

Trustin Lee commented on DIRMINA-176:
-------------------------------------

Please take a look at this change:

http://svn.apache.org/viewcvs?rev=385023&view=rev

I created a new interface ByteBufferAllocator.  (Please let me know if you have 
a better name :)  Now you can implement your own buffer allocator so you can 
change the behavior of the allocator without any limit.

Any comments are welcome.  If there's no objection, I'll mark this issue as 
resolved after adding expiration scheme to PooledBufferAllocator.



> ByteBuffer pool manager which prevents endlessly increasing pool size.
> ----------------------------------------------------------------------
>
>          Key: DIRMINA-176
>          URL: http://issues.apache.org/jira/browse/DIRMINA-176
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 0.9.3

>
> The current implementation of ByteBuffer pool is designed to increase its 
> size for ever; it doesn't decrease at all.  This is often a cause of 
> OutOfMemoryError and unexpedly huge heap size.  There's one viable solution 
> for this issue:
> * Remove the buffers which have been unused for a long time from the pool.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to