elastic / apm-agent-ios

Apache License 2.0
32 stars 19 forks source link

Memory leaks #211

Closed FranCedron2690 closed 7 months ago

FranCedron2690 commented 9 months ago

In my app develped with UIKit, I am launching the Elastic APM Agent when app is launched on AppDelegate/ didFinishLaunchingWithOptions in a method with this code:

let config = AgentConfigBuilder() .withServerUrl(url) .withSecretToken(secretToken) .build()

    let instrumentationConfig = InstrumentationConfigBuilder()
        .withCrashReporting(true)
        .withViewControllerInstrumentation(false)
        .withLifecycleEvents(false)
        .build()

    ElasticApmAgent.start(with: config, instrumentationConfig)

I haven't more code related with Elastic APM, only this. Since elasitc APM is launched, i see memory a lots of memory leaks when I profile my app with Intruments/Leaks.

I can solved some of thems if i a disable ViewControllerInstrumentation and LifecycleEvents because in my case are not important, but there are other memory leaks.

¿I am doing something wrong? ¿Is there some release that solve this?

paliferka commented 8 months ago

Thanks for opening the issue.

We've tested and also see memory leaks mostly related to the NTP library. I'm working on a solution and will have an update soon.

FranCedron2690 commented 8 months ago

Thank you so much!! I will look forward to the new version

paliferka commented 7 months ago

the fix is already available starting from v1.0.1