/simulate_ruby_web_memory_use

Simulates a web server running multiple threads and the amount of memory it needs

Primary LanguageRuby

Simulate Memory needs for serving web requests

Install

$ bundle install

Run

$ ruby simulate.rb

When you do this a graphic will be generated to the tmp directory with the simulation results and if you're on a mac or linux machine the image will pop up.

Options

Simulate multiple threads:

$ THREAD_COUNT=5 ruby simulate.rb

Look at the environment variables at the top of simulate.rb for more options.