Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Pull request Compare This branch is 31 commits behind kzk:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
ext/jemalloc
lib/je
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
je.gemspec

README.md

je

Instant jemalloc injection into Ruby apps, for better performance and less memory.

Why jemalloc?

Ruby relies on malloc(3) for its internal memory allocation. Using better malloc() implementation will boost your application performance, and supress the memory usage.

jemalloc is a malloc(3) implementation, originally developed by Jason Evans. jemalloc handles small object better than other allocators so usually gives better performance and memory usage to Ruby programs.

Why je?

Installing jemalloc separately from Ruby is pain in some cases (e.g. Heroku, EngineYard, etc). je gem contains jemalloc itself within a gem, and enables instant jemalloc ingection in a really easy way: install je gem, and launch your app with je command.

Install

Install je gem in your application. For bundler based application, please add the following line into your Gemfile, and and install je by bundle install.

gem 'je'

Usage

Execute your application with je command, which is contained in je gem. Example command for Rails + bundler application is like follows.

$ bundle exec je ./script/rails s

Limitation

Currently, this gem works only on Linux and Mac OS X.

License

BSD-derived License.

Something went wrong with that request. Please try again.