You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting DD_PROFILING_DDPROF_ENABLED=true, the JVM becomes unstable. Here are the details:
When checking profiles for allocation, com/datadog/profiling/controller/openjdk/events/SmapEntryFactory.java and java/util/regex/Matcher.java used within it occupy a large portion (see attached image).
The buffer pool is heavily consumed, with jvm.buffer_pool.direct.capacity reaching three times the usual amount.
Minor GC stops occurring.
The Eden space does not decrease.
The Datadog Profiling uploader slows down.
Before the server stops functioning, the profile upload to Datadog ceases.
The issue is resolved when DD_PROFILING_DDPROF_ENABLED is set to false.
I suspect that the following regular expression might be causing poor performance depending on the input string:
The JVM should remain stable when DD_PROFILING_DDPROF_ENABLED=true is set, without excessive buffer pool consumption or halted minor GC.
Reproduction Code
The exact steps to reproduce this issue are unclear. Even when running multiple instances concurrently, the issue appears in some instances but not others.
The text was updated successfully, but these errors were encountered:
Tracer Version(s)
1.46.1
Java Version(s)
17.0.14
JVM Vendor
Amazon Corretto
Bug Report
When setting
DD_PROFILING_DDPROF_ENABLED=true
, the JVM becomes unstable. Here are the details:com/datadog/profiling/controller/openjdk/events/SmapEntryFactory.java
andjava/util/regex/Matcher.java
used within it occupy a large portion (see attached image).jvm.buffer_pool.direct.capacity
reaching three times the usual amount.DD_PROFILING_DDPROF_ENABLED
is set to false.I suspect that the following regular expression might be causing poor performance depending on the input string:
dd-trace-java/dd-java-agent/agent-profiling/profiling-controller-openjdk/src/main/java/com/datadog/profiling/controller/openjdk/events/SmapEntryFactory.java
Line 36 in 1c3133b
Expected Behavior
The JVM should remain stable when
DD_PROFILING_DDPROF_ENABLED=true
is set, without excessive buffer pool consumption or halted minor GC.Reproduction Code
The exact steps to reproduce this issue are unclear. Even when running multiple instances concurrently, the issue appears in some instances but not others.
The text was updated successfully, but these errors were encountered: