tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shanti Suresh <sha...@umich.edu>
Subject Tomcat currentThreadsBusy Mbean - JSP query page
Date Mon, 24 Sep 2012 16:07:36 GMT
Greetings.

I would like to query the CurrentThreadsBusy MBean and am running into
issues creating a JSP page for that query.

The questions I have are:

(1) when does one use "get" vs "qry".

For e.g., the following URLs work:
CurrentThreadsBusy ->
http://localhost:8090/manager/jmxproxy?qry=Catalina:type=ThreadPool%2Cname=%22http-apr-8453%22
CurrentThreadsBusy ->
http://localhost:8090/manager/jmxproxy?qry=Catalina:type=ThreadPool,name=%22http-apr-8453%22
HeapUsed ->
http://localhost:8090/manager/jmxproxy/?get=java.lang:type=Memory&att=HeapMemoryUsage&key=used

But these ones do not:
CurrentThreadsBusy (using get) ->
http://localhost:8090/manager/jmxproxy?get=Catalina:type=ThreadPool%2Cname=%22http-apr-8453%22
CurrentThreadsBusy (using get) ->
http://localhost:8090/manager/jmxproxy?get=Catalina:type=ThreadPool&name=%22http-apr-8453%22

I get:
-----
Error - javax.management.RuntimeOperationsException: Exception occurred
trying to invoke the getter on the MBean
----

(2) The following manager/busythreads.jsp does not work:

----------busythreads.jsp:---
<jsp:forward page="/jmxproxy/">
<jsp:param name="qry" value="Catalina:type=ThreadPool" />
<jsp:param name="name" value="%22http-apr-8453%22" />
</jsp:forward>
----end of busythreads.jsp----

I get:
----
OK - Number of results: 0
----

while this one, heapused.jsp, works fine:
-------heapused.jsp:-----
<jsp:forward page="/jmxproxy/">
<jsp:param name="get" value="java.lang:type=Memory" />
<jsp:param name="att" value="HeapMemoryUsage" />
<jsp:param name="key" value="used" />
</jsp:forward>
------end of heapused.jsp------

I would appreciate pointers on fixing "busythreads.jsp".

Thanks.

                         -Shanti

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message