From e66b868ad008967f65428a4e5400225600e9413e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 19 Sep 2017 22:00:29 +0200 Subject: [PATCH] SONAR-9846 Display max number of OS file descriptors in System Info page --- .../org/sonar/server/platform/monitoring/EsStateSection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java index e0cd9c9bca2..900cb59ca14 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java @@ -65,7 +65,8 @@ public class EsStateSection implements SystemInfoSection { NodeStats stats = nodesStats.getNodes().get(0); setAttribute(protobuf, "Disk Available", byteCountToDisplaySize(stats.getFs().getTotal().getAvailable().getBytes())); setAttribute(protobuf, "Store Size", byteCountToDisplaySize(stats.getIndices().getStore().getSizeInBytes())); - setAttribute(protobuf, "Open Files", stats.getProcess().getOpenFileDescriptors()); + setAttribute(protobuf, "Open File Descriptors", stats.getProcess().getOpenFileDescriptors()); + setAttribute(protobuf, "Max File Descriptors", stats.getProcess().getMaxFileDescriptors()); setAttribute(protobuf, "Spinning", stats.getFs().getTotal().getSpins()); setAttribute(protobuf, "JVM Heap Usage", formatPercent(stats.getJvm().getMem().getHeapUsedPercent())); setAttribute(protobuf, "JVM Heap Used", byteCountToDisplaySize(stats.getJvm().getMem().getHeapUsed().getBytes())); -- 2.39.5