azure-service-bus-java icon indicating copy to clipboard operation
azure-service-bus-java copied to clipboard

Memory Leak

Open jbaliuka opened this issue 3 years ago • 0 comments

Actual Behavior

  1. OutOfMemoryError

Memory leak is caused by some of internal error handlers because java.lang.StackTraceElement and related data structures are using most of the heap. Do you need java heap dump ? It is a huge file.

I suspect SDK error handler because my handler is trivial and I am using logging library in many other applications:

.processError(context -> {
          log.error(context.getFullyQualifiedNamespace(), context.getException());
        })

Expected Behavior

  1. No memory leaks

Versions

  • OS platform and version: macOS Big Sur 11.2.3
  • Java version "11.0.3" 2019-04-16 LTS
  • Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
  • Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)
  • Maven package version or commit ID: com.azure:azure-messaging-servicebus:7.0.2

jbaliuka avatar Mar 23 '21 16:03 jbaliuka