<p>What about a resource pool with an expiration policy? </p>
<p>--<br>
Marc-André Laverdiere<br>
Sent from a mobile device. Please excuse the brevity </p>
<div class="gmail_quote">On 25-Aug-2011 6:49 AM, &quot;이희승 (Trustin Lee)&quot; &lt;<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>&gt; wrote:<br type="attribution">&gt; I am aware of this issue and actually was thinking about what the best solution would be. Thank you for sharing your idea. If anyone has other ideas, please let me know.<br>
&gt; <br>&gt; Thanks <br>&gt; <br>&gt; -- <br>&gt; Trustin Lee (<a href="http://gleamynode.net/">http://gleamynode.net/</a>)<br>&gt; <br>&gt; On Wednesday, August 24, 2011 at 10:24 PM, Thibaut wrote:<br>&gt; <br>&gt;&gt; Sometimes we make concurrent larger requests (&gt; 30 MB) through elasticsearch<br>
&gt;&gt; and the buffers are still kept afterwards, even though we don&#39;t use them<br>&gt;&gt; anymore afterwards. This causes us to have more than 400 MB of allocated<br>&gt;&gt; buffers in our heap which we don&#39;t use.<br>
&gt;&gt; <br>&gt;&gt; It would be great if it would be possible to drop the allocated buffers<br>&gt;&gt; after they are not used for a while anymore. Or even reduce the buffer size<br>&gt;&gt; if the last 100 requests were more than of a factor of 2 smaller than the<br>
&gt;&gt; largest request.<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; --<br>&gt;&gt; View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/FrameDecoder-and-cumulation-size-tp6596595p6720135.html">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/FrameDecoder-and-cumulation-size-tp6596595p6720135.html</a><br>
&gt;&gt; Sent from the Netty User Group mailing list archive at Nabble.com (<a href="http://Nabble.com">http://Nabble.com</a>).<br>&gt;&gt; _______________________________________________<br>&gt;&gt; netty-users mailing list<br>
&gt;&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a> (mailto:<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a>)<br>&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt; <br></div>