mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added HeapDump support.
This commit is contained in:
parent
1df511d1d4
commit
a61acc4890
2 changed files with 19 additions and 0 deletions
|
@ -2459,6 +2459,10 @@ function mainStart() {
|
|||
if (allsspi == false) { modules.push('otplib@10.2.3'); } // Google Authenticator support (v10 supports older NodeJS versions).
|
||||
}
|
||||
|
||||
// Setup heapdump support if needed, useful for memory leak debugging
|
||||
// https://www.arbazsiddiqui.me/a-practical-guide-to-memory-leaks-in-nodejs/
|
||||
if (config.settings.heapdump === true) { modules.push('heapdump'); }
|
||||
|
||||
// Install any missing modules and launch the server
|
||||
InstallModules(modules, function () { meshserver = CreateMeshCentralServer(config, args); meshserver.Start(); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue