JMX: MaxFileDescriptorCount and OpenFileDescriptorCount

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.

+3
source share
1 answer

Unfortunately, I can not answer your first question, because I have not yet found useful information about this. As for your second question: the potential reason that the value is "Unavailable" may be because the operating system is not unix. See http://docs.oracle.com/javase/7/docs/technotes/guides/management/mxbeans.html

0
source

All Articles