signalfx/splunk-otel-js

Memory leak when migrate signalfx to splunk/otel library

Opened this issue · 3 comments

Hi

I have a memory leak when migrate signalfx library to splunk/otel, I have confirmed with other services that they migrate and have the same behavior.

Captura de pantalla 2023-07-05 a la(s) 19 14 42

My implementation is:

package.json

"scripts": {
  "prod": "APP_ENV=production node --max_old_space_size=4096 -r @splunk/otel/instrument src/app.js"
}

app.js

/* eslint-enable global-require */
const { startProfiling } = require('@splunk/otel');
startProfiling({
  serviceName: process.env.SPLUNK_SERVICE_NAME,
})

Any idea what is happening?

seemk commented

Is this only with CPU profiling? Or was memory profiling enabled as well?

@seemk both profiling

@blacktrue Which version are you using? Can you upgrade to the latest version?