Ruby 2.6.5 with jemalloc
Try:
puts RbConfig::CONFIG['MAINLIBS']
And check for -ljemalloc
in the output.
This behavior has changed recently (in 2.6.x, to be precise).
How to check ruby-2.6.3 is using jemalloc ? I installed ruby-2.6.3 as $ rvm install 2.6.3 -C --with-jemalloc
In ruby 2.6.x
, you have to check MAINLIBS
, like this:
$ irb -rrbconfig
irb(main):004:0> RbConfig::CONFIG['MAINLIBS']
=> "-lz -lpthread -lrt -lrt -ljemalloc -lgmp -ldl -lcrypt -lm "
or, of course, with your one-liner:
$ ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
-lz -lpthread -lrt -lrt -ljemalloc -lgmp -ldl -lcrypt -lm
Rbenv: How to have two or more RUBY_CONFIGURE_OPTS when installing ruby?
You can set multiple options by using double quote.
RUBY_CONFIGURE_OPTS="--with-jemalloc--disable-install-doc --disable-install-doc" rbenv install 2.6.5 -v
Related Topics
How to Include Blank Field in Select_Tag
Check to See If an Array Is Already Sorted
Rails 4.1 Activerecord::Relation Is No More Like Array
Inherit Class-Level Instance Variables in Ruby
How to Extract a Single Character (As a String) from a Larger String in Ruby
How to Print Stdout Immediately
Automatically Open a File as Binary with Ruby
Ruby String Split with Terminal Strings Empty
Ruby: Could Not Find a Temporary Directory
Skip/Disable Force_Ssl for Particular Controller in Rails
How to Split Routes.Rb into Smaller Files
In Ruby, How to Get Instance Variables in a Hash Instead of an Array
Why Does Ruby Builder::Xmlmarkup Add Inspect Tag to Xml
How to Override [] Brackets in Ruby
Is It Ever Necessary to Use 'Chomp' Before Using 'To_I' or 'To_F'