How to get Current and accurate Memory Usage of k8s Pod running Node JS application
I have a NodeJS application running on a k8s pod. The actual size of the pod is 2GB, but in environment variables, we set this value to 4GB --max-old-space-size=4096
(which will not be true in my case – for some tenants we do allocate 4GB but most pods have 2GB).