Skip to content

Instantly share code, notes, and snippets.

@pallan
Created October 22, 2013 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pallan/7109019 to your computer and use it in GitHub Desktop.
Save pallan/7109019 to your computer and use it in GitHub Desktop.
Passenger setup from config/environments file
if defined?(PhusionPassenger)
require 'phusion_passenger/rack/out_of_band_gc'
require 'phusion_passenger/public_api'
# Trigger out-of-band GC every 5 requests.
config.middleware.use PhusionPassenger::Rack::OutOfBandGc, 5
end
# NewRelic Garbage Collection Monitoring
GC::Profiler.enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment