]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9846 Display max number of OS file descriptors in System Info page
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 19 Sep 2017 20:00:29 +0000 (22:00 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 26 Sep 2017 21:49:38 +0000 (23:49 +0200)
server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java

index e0cd9c9bca2e81a65890565f11fa2c7bb0d60a98..900cb59ca1476e9e68ac558959ff6562de3c3bb3 100644 (file)
@@ -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()));