Red Hat Bugzilla – Bug 639398
Need Open Files/File Handle Count metric for JVM and other processes
Last modified: 2013-09-03 11:18:26 EDT
As most operating systems impose a file handle limit for each process, it is common for a process to crash or stop functioning correctly due to hitting such a limit. The ability to monitor and alert on a metric that indicates what the current open file count is for a process and what the file limit is would be very beneficial to the management and administration of enterprise platforms and servers.
=== In Red Hat Customer Portal Case 00350784 ===
--- Comment by Hasse, Scott on 10/7/2010 10:11 AM ---
The mbean is
This is along side of other metrics already gathered such as ProcessCpuTime. I believe this is attribute is not available on Windows.
Adding this should be pretty easy, although as correctly noted, this attribute is not present on Windows.
We'd have to check how the generic JMX plugin behaves when a mbean attribute is not present while reading in a measurement, but even modifying that behaviour wouldn't be difficult.
That should be disabled by default with a comment about Win*
removing superfluous trackers
Targeting for JON3.1.0, conditional on https://bugzilla.redhat.com/show_bug.cgi?id=747925 getting fixed
1) Inventory RHQ Agent resource on a Linux machine
2) Enable the "Open Files" metric on the "Operating System" service under the JVM of the RHQ Agent resource (and lower the default collection interval if needed)
3) Check that the metric is being collected.
4) Inventory the RHQ Agent on a Windows machine
5) repeat 2)
6) Check that all other metrics on that resource are still collected, while "Open Files" remains NaN (because there is no support for this metric on Windows, as noted in the metric's description).
Author: Lukas Krejci <email@example.com>
Date: Wed Mar 21 21:49:49 2012 +0100
[BZ 639398] - Adding an "Open Files" metric to the "Operating System"
Note that this metric is present in the generic "JMX Server" resource type inherited by many plugins - for example the "JVM" resource under RHQ Agent, AS servers, tomcat, etc, should automatically gain this feature, too.
Manually imported JMX server should have this metric available, too.
On the other hand, I don't think that the above needs to be specifically tested, because that is a feature of our plugin type system. It is enough to merely check for presence of this metric under, say, an inventoried RHQ Server.
Note also that for this new metric to appear under the RHQ Server using a database that has been kept from previous builds, the fix for bug 747925 needs to be in and working (which should be the case with master).
Build from: http://hudson.qa.jboss.com/hudson/job/rhq-master/
I am on Fedora
Under RHQ Agent ... I don't see the open files metric. Attaching image to document my observations.
Created attachment 579104 [details]
image documenting i don't see open files metric under operating system
The screenshot show the resource tree. The Open Files is a metric and as such doesn't appear in the resource tree.
Click on the Operating System resource under a JVM resource and navigate to its Monitoring -> Schedules subtab. You should see the Open Files metric there.
attaching screenshot of the verification per comment #10.
Created attachment 579507 [details]
screenshot documenting open files metric per comment #10
Bulk closing of old issues in VERIFIED state.