I track the memory leak problem in our application (ruby 2.1). I use both methods: ObjectSpace.dump_all to dump all objects into a JSON stream, then do offline analysis. The second method I used was real-time analysis using ObjectSpace.reachable_objects_from . In both cases, I found that my leaked objects reference a RubyVM::Env object. Anyone can explain to me what RubyVM::Env . How to remove these links?
source share