dd-trace-java
dd-trace-java copied to clipboard
MpscBlockingConsumerArrayQueue high memory usage
In certain scenarios, it has been observed that enabling the trace feature results in higher memory consumption. We simulated situations involving high concurrency and a substantial number of spans within the trace. It was found that MpscBlockingConsumerArrayQueue tends to occupy a comparatively higher amount of old generation memory.
possible that the rate of span generation exceeds the rate of span send? Is there any configuration to limit the size of MpscBlockingConsumerArrayQueue or optimize the sending rate?
Here are some screenshots for reference:
Memory usage below 100 MB when not enable trace.
Facing the same issue. Does setting this configuration dd.trace.partial.flush.min.spans to a lower value help .