News for hackers. Stuff that matters.
Re:Native Minecraft servers with GraalVM Native Image by bitcharmer on Friday September 02, 2022 @11:59AM (#32692341)
This is very interesting. Could you share more details on this particular issue in glibc? Jar files get mapped so I'm really interested where glibc failed to release memory.
Re:Native Minecraft servers with GraalVM Native Image by xendo on Friday September 02, 2022 @04:41PM (#32695486)
No the OP, but we had similar issue — our service was leaking when allocating native memory using JNI. We onboarded Jemalloc as it has better debugging capabilities, but the leak dissapeared and performance improved. We never got around to root causing original leak.
Re:Native Minecraft servers with GraalVM Native Image by Birch-san on Friday September 02, 2022 @09:52PM (#32697798)
It's probably the same thing prestodb encountered: https://github.com/prestodb/presto/issues/8993
Re:Native Minecraft servers with GraalVM Native Image by Birch-san on Friday September 02, 2022 @09:51PM (#32697795)
For performance reasons, glibc may not return freed memory to the OS. You can increase the incentive for it to do so, by reducing MALLOC_ARENA_MAX to 2. https://github.com/prestodb/presto/issues/8993