Skip to content

Commit

Permalink
open file descriptors only works on unix, stop logging warning
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jun 22, 2018
1 parent 985cbf6 commit 946e2ab
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -561,7 +561,6 @@ public synchronized Enumeration<Object> keys() {
runtimeProperties.setProperty("file.descriptor.open.count", mbeanServer.getAttribute(oName, "OpenFileDescriptorCount").toString());
runtimeProperties.setProperty("file.descriptor.max.count", mbeanServer.getAttribute(oName, "MaxFileDescriptorCount").toString());
} catch (Exception e) {
log.warn("Unable to access MBean attributes for operating system", e);
}

runtimeProperties.store(fos, "runtime-stats.properties");
Expand Down

0 comments on commit 946e2ab

Please sign in to comment.