Is there a way to dump objects in memory from a running ruby ​​process?

Killing processes while getting this information would be nice.

+3
source share
3 answers

For more hardcore, there is also BleakHouse , which gives you a special compiled copy of ruby ​​with better powarz memory leak tracking

0
source

A quick and dirty way will be ObjectSpace.each_object{|e| p e}. You can do some tests to determine what you wanted to keep, or marshal the objects.

+2
source

1.9.2/1.9.3 heap_dump gem, gdb ( , )

, , , .

+2

Source: https://habr.com/ru/post/1697339/


All Articles