# Check server process is using jemalloc # ref. [Japanese] https://tech.studyplus.co.jp/entry/2019/09/09/094140 class AppController < ActionController::Base def show r = `strings /proc/#{Process.pid}/maps | grep jemalloc` render plain: "

#{ENV['LD_PRELOAD'].presence || 'empty'}

#{r}
" end end