I am using Nodejs. I am planning to increase the memory limit of a Nodejs application.
While googling, I found this article: Increasing Node.js memory limits.
The author says his server only has 8GB
of physical memory, but his Nodejs process is using 28GB
of memory. I assume that it is using physical + swap
memory. The article also mentioned that the developer of a famous Nodejs framework uses 15GB
memory limit for his Nodejs.
I have tried to search for some examples from other programming languages. In Java, it seems that it is not a good idea to use swap memory for JVM heap. Referring to this article: How increasing swap size allow me to increase the heap size?, using swap memory for JVM heap will create big problems.
I am not sure whether there is any difference between the JVM GC and the Nodejs GC.
Can a Nodejs process uses more memory than the available physical memory (by using swap memory)?