You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2021/11/19 19:44:27 UTC
[geode] 07/16: fixes max files
This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch wip/oshi-multios-stats-module
in repository https://gitbox.apache.org/repos/asf/geode.git
commit 25b39ea10d006f73cfdd3ceb308e37ef0a279650
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Sat Jun 12 20:24:02 2021 -0700
fixes max files
---
.../oshi/OshiStatisticsProviderImpl.java | 32 ++++++++++++++--------
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/geode-core/src/main/java/org/apache/geode/internal/statistics/oshi/OshiStatisticsProviderImpl.java b/geode-core/src/main/java/org/apache/geode/internal/statistics/oshi/OshiStatisticsProviderImpl.java
index b79a038..8054881 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/statistics/oshi/OshiStatisticsProviderImpl.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/statistics/oshi/OshiStatisticsProviderImpl.java
@@ -181,19 +181,24 @@ public class OshiStatisticsProviderImpl implements OshiStatisticsProvider {
tcPv4Stats.getConnectionFailures());
systemStats.setLong(OperatingSystemStats.tcpv4ConnectionsReset,
tcPv4Stats.getConnectionsReset());
- systemStats.setLong(OperatingSystemStats.tcpv4SegmentsSent, tcPv4Stats.getSegmentsSent());
+ systemStats.setLong(OperatingSystemStats.tcpv4SegmentsSent,
+ tcPv4Stats.getSegmentsSent());
systemStats.setLong(OperatingSystemStats.tcpv4SegmentsReceived,
tcPv4Stats.getSegmentsReceived());
systemStats.setLong(OperatingSystemStats.tcpv4SegmentsRetransmitted,
tcPv4Stats.getSegmentsRetransmitted());
- systemStats.setLong(OperatingSystemStats.tcpv4InErrors, tcPv4Stats.getInErrors());
- systemStats.setLong(OperatingSystemStats.tcpv4OutResets, tcPv4Stats.getOutResets());
+ systemStats.setLong(OperatingSystemStats.tcpv4InErrors,
+ tcPv4Stats.getInErrors());
+ systemStats.setLong(OperatingSystemStats.tcpv4OutResets,
+ tcPv4Stats.getOutResets());
final UdpStats udPv4Stats = internetProtocolStats.getUDPv4Stats();
- systemStats.setLong(OperatingSystemStats.udpv4DatagramsSent, udPv4Stats.getDatagramsSent());
+ systemStats.setLong(OperatingSystemStats.udpv4DatagramsSent,
+ udPv4Stats.getDatagramsSent());
systemStats.setLong(OperatingSystemStats.udpv4DatagramsReceived,
udPv4Stats.getDatagramsReceived());
- systemStats.setLong(OperatingSystemStats.udpv4DatagramsNoPort, udPv4Stats.getDatagramsNoPort());
+ systemStats.setLong(OperatingSystemStats.udpv4DatagramsNoPort,
+ udPv4Stats.getDatagramsNoPort());
systemStats.setLong(OperatingSystemStats.udpv4DatagramsReceivedErrors,
udPv4Stats.getDatagramsReceivedErrors());
@@ -208,26 +213,31 @@ public class OshiStatisticsProviderImpl implements OshiStatisticsProvider {
tcPv6Stats.getConnectionFailures());
systemStats.setLong(OperatingSystemStats.tcpv6ConnectionsReset,
tcPv6Stats.getConnectionsReset());
- systemStats.setLong(OperatingSystemStats.tcpv6SegmentsSent, tcPv6Stats.getSegmentsSent());
+ systemStats.setLong(OperatingSystemStats.tcpv6SegmentsSent,
+ tcPv6Stats.getSegmentsSent());
systemStats.setLong(OperatingSystemStats.tcpv6SegmentsReceived,
tcPv6Stats.getSegmentsReceived());
systemStats.setLong(OperatingSystemStats.tcpv6SegmentsRetransmitted,
tcPv6Stats.getSegmentsRetransmitted());
- systemStats.setLong(OperatingSystemStats.tcpv6InErrors, tcPv6Stats.getInErrors());
- systemStats.setLong(OperatingSystemStats.tcpv6OutResets, tcPv6Stats.getOutResets());
+ systemStats.setLong(OperatingSystemStats.tcpv6InErrors,
+ tcPv6Stats.getInErrors());
+ systemStats.setLong(OperatingSystemStats.tcpv6OutResets,
+ tcPv6Stats.getOutResets());
final UdpStats udPv6Stats = internetProtocolStats.getUDPv6Stats();
- systemStats.setLong(OperatingSystemStats.udpv6DatagramsSent, udPv6Stats.getDatagramsSent());
+ systemStats.setLong(OperatingSystemStats.udpv6DatagramsSent,
+ udPv6Stats.getDatagramsSent());
systemStats.setLong(OperatingSystemStats.udpv6DatagramsReceived,
udPv6Stats.getDatagramsReceived());
- systemStats.setLong(OperatingSystemStats.udpv6DatagramsNoPort, udPv6Stats.getDatagramsNoPort());
+ systemStats.setLong(OperatingSystemStats.udpv6DatagramsNoPort,
+ udPv6Stats.getDatagramsNoPort());
systemStats.setLong(OperatingSystemStats.udpv6DatagramsReceivedErrors,
udPv6Stats.getDatagramsReceivedErrors());
final FileSystem fileSystem = operatingSystem.getFileSystem();
systemStats.setLong(OperatingSystemStats.openFileDescriptors,
fileSystem.getOpenFileDescriptors());
- systemStats.setLong(OperatingSystemStats.openFileDescriptors,
+ systemStats.setLong(OperatingSystemStats.maxFileDescriptors,
fileSystem.getMaxFileDescriptors());
}