Skip to content
/ memlog Public

Memlog is a simple gem to track down memory leaks in your Rails application

Notifications You must be signed in to change notification settings

dbi/memlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memlog

Memlog is a simple gem to track down memory leaks in your Rails application.

Usage

Just include the Memlog module in a rails controller

class ApplicationController < ActionController::Base

  include Memlog

  # ...

end

And it will log the following output on each request

2011-12-27 08:42:47	Memory: +1009 KB	Now: 311948 KB	PID:25430	GET http://publish.mynewsdesk.com/se/edit/pressrelease

Notes

Grep for requests that increase memory consumption drastically

$ grep 'Memory: +[0-9]\{6\}' log/production.log

About

Memlog is a simple gem to track down memory leaks in your Rails application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages