Opentelemetry objects in Heap #9754
Replies: 2 comments
-
moving to the instrumentation repository |
Beta Was this translation helpful? Give feedback.
-
Could you explain how you reached that conclusion. As far as I can tell the top half of the first screenshot says that there is a bit over 100mb of live objects and 30mb of garbage and and 260k of objects waiting for finalization. It does not show that these objects have anything to do with opentelemetry. The bottom half shows that there is a 4mb byte-buddy |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
We are observing that with OTEL instrumentation, the heap consumption by the application is higher as compared when the application is not instrumented.
With instrumentation , within 2 hours Heap reached upto ~1.5 GB , where as without instrumentation it reached ~ 750 mb .
On further checking the heap dump , we found lot objects from opentelemetry being occupied in memory which is having strong references and waiting for finalizer to be called.
GC algorithm used is Parallel GC.
Heap Dump:

Heap usage without instrumentation.

Heap usage with instrumentation

Can you please help us in understanding on object creation by otel instrumentation and retention of it in memory i.e. why there are so many objects created which is waiting for major GC to trigger to remove it from heap ?
Also, can you please suggest the best GC algorithm to be enabled for otel instrumented application.
Beta Was this translation helpful? Give feedback.
All reactions