I’ve written an application using PushType and have encountered a memory leak. I’ve been scouring my own code and stripping down my pages to find out just what could be causing the leak.
PushType uses Dragonfly to manage assets, and I’ve heard that there are memory problems with Dragonfly related to ImageMagick. I’ve turned off all identify and convert ImageMagick code I’ve been using and made sure that all of my images are stored in s3 storage and retrieved via #remote_url. However, this does not seem to have changed my memory situation.
I’ve also tried other things such as garbage collection (via GC.start) after every request with a after_action callback without success. I’ve tried refreshing particular pages over and over again to see if I could narrow down what areas are causing problems, but I’ve seen no differences. As far as I can tell the only thing present on every page are calls to PushType to, for example, build the header navigation.
Has anyone else had memory problems with applications using PushType? Or Dragonfly/ImageMagick? If anyone has any advice at all, I’d really appreciate it.