High CPU usage in production (Remix 1.11.1) #5501
Unanswered
felimenta970
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We've recently developed a couple webpages using Remix (started at 1.1.1 early 2022, and recently upgraded to 1.11.1) and Express server inside a Docker container. We've noticed that, at some point, the CPU usage for the node.js process in production goes to 100% usage, apparently out of nowhere. At that point, page requests are either extremely slow (10s or more per page), or simply fail to be completed.
With 1.1.1, it used to happen every few hours (longest we got was half a day without having to restart the process. With 1.11.1, it happens less often, requests might take a bit longer, but we only had to restart the process a couple times in a couple weeks.
Memory usage seems to remain stable, so I don't believe there's a memory leak (either in Remix, our code, or any of the components usage), as well as CPU (it seems to spike to 100% out of nowhere and stay there).
server.js was slightly modified to use morgan to customize our log statments and handle one specific control route without Remix, but that was added as a way to figure out our performance problems.
Has anyone had that issue? Is it possible we did something wrong with a configuration file somewhere that could be causing that? I'm happy to share how setup files if needed.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions