Skip to content

Commit

Permalink
fix #843 Tomcat info is not available anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
evernat committed Jul 12, 2019
1 parent c7dec56 commit c207790
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ private MBeansAccessor() {
}

static Set<ObjectName> getTomcatThreadPools() {
return MBEAN_SERVER.queryNames(createObjectName("*:type=ThreadPool,*"), null);
final Set<ObjectName> result = new HashSet<ObjectName>(
MBEAN_SERVER.queryNames(createObjectName("*:type=ThreadPool,*"), null));
// #843 Tomcat info is not available anymore
result.removeAll(MBEAN_SERVER.queryNames(
createObjectName("*:type=ThreadPool,*,subType=SocketProperties"), null));
return result;
}

static Set<ObjectName> getTomcatGlobalRequestProcessors() {
Expand Down

0 comments on commit c207790

Please sign in to comment.