signalfx / splunk-otel-js

Splunk Distribution of OpenTelemetry JavaScript
https://docs.splunk.com/Observability/gdi/get-data-in/application/nodejs/get-started.html
Apache License 2.0
20 stars 13 forks source link

Memory leak when migrate signalfx to splunk/otel library #752

Open blacktrue opened 1 year ago

blacktrue commented 1 year ago

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 9 months ago

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

blacktrue commented 6 months ago

@seemk both profiling

seemk commented 6 months ago

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