Strange Memory Leak + High CPU Usage in Production Build (But Not in Dev) !! Anyone Seen This Before? #179592
-
BodyI’m dealing with a really confusing issue and I’m hoping someone here has run into something similar. I have a React + Node.js app running on a production environment (PM2 + Nginx). Everything works perfectly in development, but after deploying the production build, I get:
I think the production React build might be triggering an unintended infinite re-render loop only in the deployed environment, maybe due to environment variables or server misconfiguration — but I cannot reproduce it locally. At this point, I’m stuck. Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Possible Root Cause: Mismatch Between Frontend BASE_URL and Server Proxy → Infinite Fetch Loop in Production OnlyHey, I’ve actually seen a nearly identical issue before, and based on your description, there’s a strong chance this has nothing to do with React or PM2 directly — it’s likely coming from a silent infinite network loop caused by an environment mismatch between your frontend build and server proxy.
Your symptoms match it almost perfectly |
Beta Was this translation helpful? Give feedback.
Possible Root Cause: Mismatch Between Frontend BASE_URL and Server Proxy → Infinite Fetch Loop in Production Only
Hey, I’ve actually seen a nearly identical issue before, and based on your description, there’s a strong chance this has nothing to do with React or PM2 directly — it’s likely coming from a silent infinite network loop caused by an environment mismatch between your frontend build and server proxy.
To fix it:
Your symptoms match it almost perfectly