enhance for jboos

This commit is contained in:
qgarnier 2017-10-03 15:56:02 +02:00
parent baef3d499a
commit 956f58d99e
1 changed files with 4 additions and 2 deletions

View File

@ -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);