4 ms·
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 re
by bitcharmer 4y ago
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.
- xendo 4y agoNo 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.
- Birch-san 4y agoIt's probably the same thing prestodb encountered: https://github.com/prestodb/presto/issues/8993 https://github.com/prestodb/presto/issues/8993
- Birch-san 4y agoFor 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 https://github.com/prestodb/presto/issues/8993