Use gdb debugging to see what data is stored in the process’s memory.

  node.js, question

I used htop to check that node.js takes up more than 30 m of memory, and the memory will increase continuously after running for a period of time, so I want to use gdb debugging to check what data is stored in the stack of this process, causing the memory to increase. Can you tell me how to operate it, as a beginner of GDB, I am not very familiar with it ~ ~



The variable being used; Global variables; Use up variables that have not been recycled and have not been assigned null; Variable cache and the like;

There will be some memory changes for each user connection.

Of course, there are also memory leaks.