Next.js Discord

Discord Forum

High CPU Utilization

Unanswered
Red imported fire ant posted this in #help-forum
Open in Discord
Red imported fire antOP
Hi all!

Recently our production next js app is having a high CPU utilization which is causing the LCP of pages across the app to degrade. The BE has pretty much been ruled out so I have been trying to look into a flamegraph of the app.

Issue is that the flamegraph seems to be pointing to chunks instead of recognizable functions/names (ex. .next/server/chunks/81583.js).

Was hoping to get some advice regarding a better way to figure out what's causing the high cpu utilization for next js apps or a way to figure out what code is tied to some xyz chunk.

1 Reply