title: How to add jemalloc to existing rails server using rvm?
body: <p>how to add jemalloc in a working ruby on rails server?We installed ruby using rvm. </p>
  
  <p><code>Rails version:5.2
   Ruby version:2.5.1</code></p>
  
  <p>I tried</p>
  
  <pre><code>ruby -r rbconfig -e "puts RbConfig::CONFIG['LIBS']"
  </code></pre>
  
  <p>whose output i got as</p>
  
  <pre><code>-lpthread -lgmp -ldl -lcrypt -lm
  </code></pre>
  
  <p>I saw an article <a href="https://bubblin.io/blog/jemalloc" rel="nofollow noreferrer">Lower Memory Usage of your Rails App with Jemalloc</a> but its using rbenv</p>