From 956f58d99ef76184e19803f3a4359ce4ae858c31 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 3 Oct 2017 15:56:02 +0200 Subject: [PATCH] enhance for jboos --- apps/tomcat/jmx/mode/connectorusage.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/tomcat/jmx/mode/connectorusage.pm b/apps/tomcat/jmx/mode/connectorusage.pm index a845a9370..cea015621 100644 --- a/apps/tomcat/jmx/mode/connectorusage.pm +++ b/apps/tomcat/jmx/mode/connectorusage.pm @@ -185,9 +185,11 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; + # Tomcat: Catalina + # Jboss: jboss.web $self->{request} = [ - { mbean => "Catalina:name=*,type=ThreadPool", attributes => [ { name => 'currentThreadCount' }, { name => 'currentThreadsBusy' }, { name => 'maxThreads' } ] }, - { mbean => "Catalina:name=*,type=GlobalRequestProcessor", attributes => [ { name => 'bytesReceived' }, { name => 'bytesSent' }, { name => 'requestCount' } ] } + { mbean => "*:name=*,type=ThreadPool", attributes => [ { name => 'currentThreadCount' }, { name => 'currentThreadsBusy' }, { name => 'maxThreads' } ] }, + { mbean => "*:name=*,type=GlobalRequestProcessor", attributes => [ { name => 'bytesReceived' }, { name => 'bytesSent' }, { name => 'requestCount' } ] } ]; my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 1);