Spying on a Ruby process's memory allocations with eBPF
jvns.ca
jvns.ca
Eg VisualVM
I think it was just a case of passing a JRUBY_OPT option and opening a port on my container.
edit: ptrace not pattach
I am still unclear about the copying maps to call Ruby class name function. Might have to give that a reread.