Join GitHub today
No additional gems installed or loaded.
I discovered this bug in a production service that uses the
I expect JRuby to not run out of memory when repeatedly allocating and freeing a constant number of
In the test script below there is a single thread that allocates and then immediately frees what it allocated. I've run this for several minutes successfully on JRuby 22.214.171.124 and MRI 2.4.1 but on JRuby 126.96.36.199 and 188.8.131.52 it runs out of memory within a few seconds.
The JVM runs out of memory after a few seconds. It doesn't look like the native memory allocations are ever freed.
The result of running the above script on JRuby 184.108.40.206:
Just before it crashed the heap histogram looked like this:
Seeing this on a large-ish app after ~18 hours of runtime.