dev@glassfish.java.net

Re: Monitoring and the REST api

From: Ludovic Champenois <ludovic.champenois_at_oracle.com>
Date: Mon, 05 Jul 2010 09:39:01 -0700

On 6/23/10 9:47 AM, Vince Kraemer wrote:
> Hi all,
>
> I am trying to get the data associated with the web-service-mon mbean
> (amx:pp=/mon/server-mon[server],type=web-service-mon,name=webservices-deployment)
> via the REST html interface
>
> And I have run into a couple problems.
>
> The first is that the bean doesn't exist until AMX is booted...
>
> So, the following use-case is kind of broken.
>
> First, download and install 3.1.
>
> Then, start domain1.
>
> Then, fire the browser at http://localhost:4848/monitoring/domain.
> read the message
>
> Hint
> Module monitoring levels may be OFF. To set module monitoring levels
> please visit following url:
> http://localhost:4848/management/domain/configs/config/server-config/monitoring-service/module-monitoring-levels
>
>
> Follow the advice and set some of the monitoring levels to LOW and
> save them
I do that.
Which ones did you enable? I did all of them
>
> Then, fire the browser at http://localhost:4848/monitoring/domain.
> and read the helpful message again...
>
Which message?
> So, now the user is at a dead-end.
>
Not for me,
I see a "server" link that I can click on and see
http://localhost:4848/monitoring/domain/server
and a jvm , security, applications, network, transaction,
web,http-service links under it.
So the user is not at a dead-end...

> If I go into jconsole, none of the monitoring beans are available...
> because AMX is not getting booted.
>
> Unfortunately, if I use jconsole to boot amx, the beans appear... but
> the REST html pages do not seem to provide access to them.
did you try to enable the "webservicecontainer" monitoring level?
Maybe you need to file bugs there if monitoring via flashlight is
missing (REST only shows what is exposed...)

Ludo


>
> So, now I am kind of stuck. I need to get access to this bean to
> support some of the features associated with
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=12056.
>
> Is there a problem with the HTML view?
>
> Thanks,
> vbk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>