Actions
Bug #11175
closedpossible fibers memory leak or risky GC behavior
Bug #11175:
possible fibers memory leak or risky GC behavior
Description
There's strong memory growth on mass Fiber creation/deletion.
Script to demonstrate the problem (on x86_64-linux):
loop {
10000.times.map { Fiber.new { } }
GC.start # not necessary, just to be sure
puts File.open('/proc/self/status').grep(/VmRSS:/).first
}
Running this script shows RSS growing from 57 Mb to 1Gb within one minute. Than RSS remains in range from 850 Mb to 1200 Mb.
Files
Actions