PaperMC/paper-server/src/main/java
Aikar e058d38078 Set cap on JDK per-thread native byte buffer cache
See: https://www.evanjones.ca/java-bytebuffer-leak.html

This is potentially a source of lots of native memory usage.

We are clearly seeing native usage upwards to 1-4GB which doesn't make sense.

Region File usage fixed in previous patch should of tecnically only been somewhat
temporary until GC finally gets it some time later, but between all the various
plugins doing IO on various threads, this hidden detail of the JDK could be
keeping long lived large direct buffers in cache.

Set system properly at server startup if not set already to help protect from this.
2020-05-04 01:08:56 -04:00
..
ca/spottedleaf/moonrise MC Utils 2016-03-28 20:55:47 -04:00
com/destroystokyo/paper Make the GUI graph fancier 2020-02-02 04:00:40 -06:00
io/papermc/paper Add tick times API and /mspt command 2020-04-05 22:23:14 -05:00
net/neoforged/art/internal Plugin remapping 2022-10-29 15:22:32 -07:00
org Set cap on JDK per-thread native byte buffer cache 2020-05-04 01:08:56 -04:00