ryanblenis / MeshCentral-ScriptTask

Scripting plugin for MeshCentral
Apache License 2.0
54 stars 14 forks source link

Memory leak #33

Open espeoceka opened 2 years ago

espeoceka commented 2 years ago

Hi i got 130 machines under meshcentral, since i moved to mongodb i got some strange memory leaks. It just takes whole ram and then crashes... restart ( every 2-3 minutes ):

Error i got:

terminate called after throwing an instance of 'std::bad_alloc' Oct 12 09:51:04 poczta node[2773]: what(): std::bad_alloc Oct 12 09:51:04 poczta node[2773]: at ChildProcess.exithandler (child_process.js:383:12) Oct 12 09:51:04 poczta node[2773]: at ChildProcess.emit (events.js:412:35) Oct 12 09:51:04 poczta node[2773]: at maybeClose (internal/child_process.js:1058:16) Oct 12 09:51:04 poczta node[2773]: at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) { Oct 12 09:51:04 poczta node[2773]: killed: false, Oct 12 09:51:04 poczta node[2773]: code: null, Oct 12 09:51:04 poczta node[2773]: signal: 'SIGABRT', Oct 12 09:51:04 poczta node[2773]: cmd: '/usr/bin/node /home/**REDACTED***/latest/node_modules/meshcentral/meshcentral --launch 2773'

I removed all db files under meshcentral-data and this didnt help at all.... ( i got 5 scripts there so not too much )

Any idea how to approach this kind of issue...??