Ruby 2.6.5 with jemalloc

余生长醉 提交于 2020-01-22 02:30:43

问题


I've built and installed rub 2.6.5 from source with jemalloc. However when I check to see if its there I'm not seeing an entry. Is there something else I should have been doing?

ubuntu:~$ uname -a
Linux ip-10-0-3-198 4.15.0-1032-aws #34-Ubuntu SMP Thu Jan 17 15:18:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ubuntu:~$ ./configure --enable-shared --with-jemalloc
ubuntu:~$ make
ubuntu:~$ make install

Which results in:

ubuntu:~$ ruby -r rbconfig -e "puts RbConfig::CONFIG['LIBS']"
-lm 

Tracking memory usage once deployed I'm also not seeing a drop compared to similarly configured servers without jemalloc in place.

I'm not sure what I need to be doing in order to get jemalloc working.

Thanks!


回答1:


Try:

puts RbConfig::CONFIG['MAINLIBS']

And check if -ljemalloc is in the output.

This behavior has changed recently (in 2.6.x, to be precise).



来源:https://stackoverflow.com/questions/59154333/ruby-2-6-5-with-jemalloc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!