Skip to content
xdotcommer edited this page Sep 13, 2010 · 6 revisions

Memcheck
====

Rails plugin to help with tracking down memory leaks, with a few caveats.

  • this plugin will only work with *nix type operating systems as it relies on the output of “ps”
  • this plugin runs garbage collection after every controller action, so it is only intended for diagnostic purposes
  • the around filter will “probably” run first (before other before filters with the exception of any plugins that are loaded before this one) but will not run after other after_filters defined in your app… so you may find the previous request is responsible for the memory change

Example
===

Grep the log file for MemCheck to see the results.

See this blog post for an example and origins.

Copyright © 2009 Michael Cowden (xdotcommer), released under the MIT license

Clone this wiki locally