Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

gem install jemalloc && bundle exec je ./script/rails s

NotificationsYou must be signed in to change notification settings

kzk/jemalloc-rb

Repository files navigation

Instantjemalloc 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 jemalloc?

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 injection in a really easy way: installje gem, and launch your app withje command.

Install

Installjemalloc gem in your application. Forbundler based application, please add the following line into your Gemfile, and and installjemalloc bybundle install.

gem 'jemalloc'

Usage

Execute your application withje command, which is contained inje gem. Example command for Rails + bundler application is like follows.

$ bundle exec je ./script/rails s

-v option will let you confirm jemalloc is actually injected.

$ bundle exec je -v ./script/rails s=> Injecting jemalloc...=> Booting WEBrick...

Limitation

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

License

BSD-derived License.

About

gem install jemalloc && bundle exec je ./script/rails s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp