Ask A Question

Notifications

You’re not receiving notifications from this thread.

CPU from 0% to 100% on any one page load.

Dev Inquizyt asked in Rails

Hello,

I am having a serious issue on the Ruby on rails application running with the following technological stack:

ubuntu-latest
Docker latest
RUBY_VERSION: 3.1.0
puma (5.6.4)
rails (7.0.3)
nginx:latest
Postgres: 14
NODE_MAJOR: 14
YARN_VERSION: 1.22.15

puma configuration

max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
threads min_threads_count, max_threads_count

When I load one page, the cpu hits 100% when rendering the page. if I load 2 pages, the second page has to wait for the first one to be fully loaded before it starts loading as the CPU is fully busy with the first page load.

When the page is loaded CPU goes down to almost 0%

Any help is much appreciated.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.