NextJS Memory Leak #66986
NextJS Memory Leak
#66986
Replies: 2 comments 6 replies
-
|
I have the same issues. Memory leak with NextJS 14.2.3 and node 18 alpine (18.20.3). Any one help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I got some update, it turns out it was not a problem on NextJS side. We were performing a fetch request without using .json, .blob or .text, which prevents the request from closing and ends up lingering in memory, worth a check |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Running nextjs (v14.2.3) in a docker instance causes memory leaks (heap dump examples below)

We already optimized the code as much as we could but taking heap snapshots from a local docker instance running a stress test shows an accumulation of the "(string)" mainly in "__ next_chunk_load__"(examples below) and upon opening them it's just values that we pass as props to multiple components (server side rendered)


Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions