Created
October 22, 2013 22:04
-
-
Save pallan/7109019 to your computer and use it in GitHub Desktop.
Passenger setup from config/environments file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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