No commit activity in last 3 years
No release in over 3 years
Provides support for Memory monitor for Rack compatible web applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 1.8.0, ~> 1.8
 Project Readme

MemoryMonitoring Middleware

MemoryMonitoring::Rack provides support for Memory monitor for Rack compatible web applications.


Gem Version Dependency Status Code Climate

Installation

Add this line to your application's Gemfile:

gem 'memory-monitoring'

And then execute:

$ bundle

Or install it yourself as:

$ gem install memory-monitoring

Configuration

Rack

In config.ru, configure MemoryMonitoring::Rack by passing a block to the use command:

use MemoryMonitoring::Rack

Or Padrino, Sinatra:

run MemoryMonitoring::Rack.new(Padrino.application)

Rails

Put something like the code below in config/application.rb of your Rails application. For example, this will allow GET, POST or OPTIONS requests from any origin on any resource.

module YourApp
  class Application < Rails::Application

    # ...

    config.middleware.use MemoryMonitoring::Rack
      
  end
end