Skip to main content

Posts

Showing posts with the label garbage collection

Node Garbage Collection

Garbage Collection Garbage collection (GC) can have a big impact on the performance of your apps. GC is a process that the Node.js runtime regularly runs to clean up any objects that were created and are not used anymore. If you create a lot of objects in your code (or a dependency does) this can slow down your app. It’s therefore a good idea to keep an eye on this. We shipped GC magic dashboard to make this easy for you! Once you upgrade your node package to  1.2.0  and deploy your app a new  Node.js Heap Statistics  dashboard will appear. Let’s look at what data is on the dashboard! Heap Statistics Node.js reserves memory to store your objects in. This is called the “heap”. The top graph in the dashboard displays the total size of your heap, and how much of it is used. If you see a lot of variation here that’s an indication something might be off. In this screenshot we put some load on this test app, and then stopped requesting pages for a bit. You can clearly see ...