Hi Chris, On Mon, Sep 24, 2012 at 12:44 PM, Christopher Schultz < ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Shanti, > > "qry" is a search operation, while "get" queries a specific MBean and > has other options (like going into a compound value and pulling-out > some data). > > I see. Thanks, Chris. > > > 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 > > You > aren't providing the required "att" parameter in any of these > queries, so it's not a surprise that you are getting errors. > > Yes, I was confused on the name and the attribute portions of the MBean. Here is the full MBean name: Name: Catalina:type=ThreadPool,name="http-apr-8453" > > (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 ---- > > Your query is not correct: there is no 'name' parameter. Instead, you > need to package everything up in the 'qry' parameter: > > <jsp:forward page="/jmxproxy/"> > <jsp:param name="qry" > value="Catalina:type=ThreadPool,\"http-apr-8453\"" /> > </jsp:forward> > > I see. Interesting. I put everything within "qry", but I did have to include "name", though, for the JSP to work. Without "name", I get no results. I also included an "att" as follows: --------------Working busythreads.jsp:--------------- <jsp:forward page="/jmxproxy/"> <jsp:param name="get" value="Catalina:type=ThreadPool,name=\"http-apr-8453\"" /> <jsp:param name="att" value="currentThreadsBusy" /> </jsp:forward> -------End of working busythreads.jsp--- This JSP produces: -------------busythreads.jsp output:---------- OK - Attribute get 'Catalina:type=ThreadPool,name="http-apr-8453"' - currentThreadsBusy= 0 ----------------End of output-------------- > 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------ > > This works because you provided the proper parameters. > > - -chris > Yes. Thank you, Chris. Appreciate your help in getting the JSP to work. -Shanti