Skip to content

Commit

Permalink
lowered ephemeral/dynamic ports to 16_000
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPaul-Perfana committed May 4, 2024
1 parent f1f6ab1 commit d1f43c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/perfana/jfr/event/SocketEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ private record TotalBytesHostKey(@Nonnull String host, @Nonnull String address,
@NotNull
private static String checkDynamicPorts(int port) {
// IANA ephemeral ports are from 49152 to 65535, but some (linux) use 32768 to 61000
// but found as low as 28006 in the wild on linux container with Java 21
return port >= 24_000 && port <= 65_535 ? "dynamic" : String.valueOf(port);
// but found as low as 17000 in the wild on linux container with Java 21
return port >= 16_000 && port <= 65_535 ? "dynamic" : String.valueOf(port);
}
}

Expand Down

0 comments on commit d1f43c4

Please sign in to comment.