'Puma not release RAM after query

i have problem with ram, memory ram bloat with time used. if i restart puma, ram released.

config puma.rb of me.

threads 0, 16
workers %x(grep -c processor /proc/cpuinfo)

preload_app!

root_dir = "/usr/local/rails_app/stress/shared"

environment "staging"

pidfile File.join(root_dir, "tmp", "pids", "puma.pid")
state_path File.join(root_dir, "tmp", "pids", "puma.state")

bind "unix://#{root_dir}/tmp/sockets/puma.sock"

on_worker_boot do
  ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source