DirectByteBuffer change proposal
Biju G.S Nair
gs.biju at gmail.com
Tue Aug 11 15:21:32 UTC 2015
Thanks Sean for the guidance. Made a request to the nio-dev team.
Thanks,
Biju
On Tue, Aug 11, 2015 at 10:30 AM, Seán Coffey <sean.coffey at oracle.com>
wrote:
> Biju,
>
> These lists are often not suitable for JDK component specific issues. You
> should discuss your issue on the nio-dev specific mailing list :
> http://mail.openjdk.java.net/mailman/listinfo/nio-dev
>
> Regards,
> Sean.
>
>
> On 11/08/2015 15:11, Biju G.S Nair wrote:
>
>> Hello All,
>> While the patch https://bugs.openjdk.java.net/browse/JDK-6857566
>> currently applied to jdk 9 (which I had requested to be back ported to JDK
>> 8 & 7) fixes the OOM exception during memory allocation by exponentially
>> increasing the sleep time, this can negatively impact low latency
>> applications using DirectByteBuffers. If we are able to provide a new JVM
>> parameter which the users can set to a percentage value of DirectBuffer
>> use
>> as threshold when the "System.gc()" call in java/nio/Bits.java to be made,
>> then the probability of sleep time being much lower is high. Also it gives
>> users some control over when the gc() need to be requested instead of
>> starting the gc() at the last moment when the direct memory is used fully.
>> Without knowing all the details, to me it looks like a straight forward
>> change. Let me know if there is any issue with the proposed change. If
>> this
>> change is a possibility let me know how I can make a request for this
>> change.
>>
>> Thanks,
>> Biju
>>
>
>
More information about the jdk7u-dev
mailing list