We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ea4e6 commit 6e7e380Copy full SHA for 6e7e380
internal-api/src/main/java/datadog/trace/util/PidHelper.java
@@ -101,7 +101,7 @@ public static Set<String> getJavaPids() {
101
try (Stream<Path> stream =
102
// Emulating the hotspot way to enumerate the JVM processes using the perfdata file
103
// https://github.com/openjdk/jdk/blob/d7cb933b89839b692f5562aeeb92076cd25a99f6/src/hotspot/share/runtime/perfMemory.cpp#L244
104
- Files.list(Paths.get(getOSTempDir() + "/hsperfdata_" + System.getProperty("user.name")))) {
+ Files.list(Paths.get(getOSTempDir(), "hsperfdata_" + System.getProperty("user.name")))) {
105
return stream
106
.filter(file -> !Files.isDirectory(file))
107
.map(Path::getFileName)
0 commit comments