Skip to content
Simulates a web server running multiple threads and the amount of memory it needs
Ruby
Branch: master
Clone or download
Latest commit df39657 Oct 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore First Oct 28, 2019
Gemfile First Oct 28, 2019
Gemfile.lock First Oct 28, 2019
README.md
simulate.rb Fix an issue with multiple threads Oct 28, 2019

README.md

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.

You can’t perform that action at this time.