简体   繁体   中英

How to track down memory leaks with MongoMapper?

I've read that Oink is a great tool for tracking ActiveRecord apps, but I'm using MongoMapper. Are there equivalent tools that can help me identify memory issues? My app lives on Heroku and consistently hits the 512MB memory threshold so I'd like to understand what's causing that.

Oink will work just as well for diagnosing memory leaks with Mongo as it will with ActiveRecord.

You can also use profiling tools like NewRelic in local development mode to check where you're spending your time, when you're triggering garbage collection, and what mongo/sql queries are being executed. This is my favorite tool for identifying and testing fixes for performance problems.

https://github.com/newrelic/rpm/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM