We want to track the number of open file descriptors on our Tomcat application server. I came across the MaxFileDescriptorCount and OpenFileDescriptorCount attributes for java.lang OperatingSystem MBean. There seems to be not much information about these attributes, at least from what I can for Google.
My questions:
- Is it safe to use these attributes for monitoring? In other words, can the values of these attributes be trusted?
- When viewing the OpenFileDescriptorCount above the JConsole, the value is Not Available. Can anyone explain why this is so?
I know there is an lsof command for Linux, but it would be nice if we could use some existing JMX monitoring tools to monitor these values.
source
share