I am tracing a memory leak problem in our application (ruby 2.1). I am using both techniques: ObjectSpace.dump_all for dumping all objects to JSON stream then do an offline analysis. The second technique I used is live analysis with ObjectSpace.reachable_objects_from. In both ways, I found that my leaked objects are referenced by an object RubyVM::Env. Anyone could explain to me what is RubyVM::Env. How to remove those references?
Ruby leaked objects are referenced by RubyVm::Env
424 views Asked by Jacob Dam At
1
RubyVM::Envis an internal ruby class that holds variable references. Here is my test: