After I upgraded a NodeJS server application from v6 to v14, I am facing with a strange memory behavior.
I noticed this issue (if it is) when I analyzed the memory usage using Dynatrace:
the process gives no problems, nor restarts nor failure have been encountered: all is working fine
the total memory usage increases constantly until it reaches about 5GB (we used
--max-memory-restart 5G
option when to run the application — who knows if it has something to do with it ...)the Heap size has its usual value and remains stable around 100~150MB
the Resident Set grows constantly until it reaches 5GB and never broken this cap limit (furthermore: the restart security option features has been never triggered)
I encounter this "issue" only in NodeJS v14, not in NodeJS v6, the application base-code is the same
Some details about memory usage here:
I haven't a great knowledge about JS Engine V8 memory structure and usage, but I given a read to following lectures:
Despite these great lectures, I am not convinced at all what may causes this Resident Set memory growing int this way. Since it's not causing me any real problems, can I gloss over? Or should I deepen, if so, what do you advise me to do?