https://github.com/The-Complete-Guide-to-Rails-Performance
I learned quite a bit about ruby memory mgmt from the above. Free text, pay for video tutorials IIRC. The course was authored by Nate Berkopec.
https://www.youtube.com/user/nateberkopec
I also found "the well grounded rubyist" to be very helpful.
https://www.manning.com/books/the-well-grounded-rubyist-thir...