Skip to content

High memory usage when using distroless/static build #188

Answered by jesec
rubenelshof asked this question in Q&A
Discussion options

You must be logged in to vote

By default, like all language runtime with JIT capabilities, Node runtime tries to utilize memory available to it to optimize the performance of the application.

V8 engine reserves its own range of address spaces at launch. Such memory is neither allocated or committed. It will not block other programs from using the memory.

You may check the real memory consumption with sudo pmap -x <pid>. It is also noticeable that the total memory available of your system will not decrease in that large amount.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jesec
Comment options

jesec Feb 4, 2021
Maintainer

Answer selected by rubenelshof
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants