read statistics of active datasources via CLI

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

read statistics of active datasources via CLI

Wolf-Dieter Fink
With the mngmt-console the statistics of Pool- and
PreparedStatementCache usage can be displayed.

But I did not found it via CLI cmd
     data-source --profile=full --name=ExampleDS read-resource

Is there a possibility to read this via CLI?

- Wolf
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: read statistics of active datasources via CLI

Heiko Braun

you have to query the actual deployment:
something like:

[/host=master/server=staging]/deployment=foobar.war/subsystem=jpa/**/*


ike

On Mar 13, 2012, at 2:48 PM, Wolf-Dieter Fink wrote:

> With the mngmt-console the statistics of Pool- and
> PreparedStatementCache usage can be displayed.
>
> But I did not found it via CLI cmd
>     data-source --profile=full --name=ExampleDS read-resource
>
> Is there a possibility to read this via CLI?
>
> - Wolf
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: read statistics of active datasources via CLI

Carlo de Wolf
In reply to this post by Wolf-Dieter Fink
/subsystem=datasources/data-source=ExampleDS/statistics=pool:read-resource(include-runtime=true)
/subsystem=datasources/data-source=ExampleDS/statistics=jdbc:read-resource(include-runtime=true)

or

/subsystem=datasources/data-source=ExampleDS:read-resource(include-runtime=true,recursive=true)

but that last one gives more than you asked for. :-)

Carlo

On 03/13/2012 02:48 PM, Wolf-Dieter Fink wrote:

> With the mngmt-console the statistics of Pool- and
> PreparedStatementCache usage can be displayed.
>
> But I did not found it via CLI cmd
>       data-source --profile=full --name=ExampleDS read-resource
>
> Is there a possibility to read this via CLI?
>
> - Wolf
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: read statistics of active datasources via CLI

Alexey Loubyansky
Or

[standalone@localhost:9999 /] ls
subsystem=datasources/data-source=ExampleDS/statistics=pool -l

or

[standalone@localhost:9999 /] cd
subsystem=datasources/data-source=ExampleDS/statistics=pool
[standalone@localhost:9999 statistics=pool] ls -l


On 03/13/2012 06:51 PM, Carlo de Wolf wrote:

> /subsystem=datasources/data-source=ExampleDS/statistics=pool:read-resource(include-runtime=true)
> /subsystem=datasources/data-source=ExampleDS/statistics=jdbc:read-resource(include-runtime=true)
>
> or
>
> /subsystem=datasources/data-source=ExampleDS:read-resource(include-runtime=true,recursive=true)
>
> but that last one gives more than you asked for. :-)
>
> Carlo
>
> On 03/13/2012 02:48 PM, Wolf-Dieter Fink wrote:
>> With the mngmt-console the statistics of Pool- and
>> PreparedStatementCache usage can be displayed.
>>
>> But I did not found it via CLI cmd
>>        data-source --profile=full --name=ExampleDS read-resource
>>
>> Is there a possibility to read this via CLI?
>>
>> - Wolf
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: read statistics of active datasources via CLI

Heiko Braun

yes, these guys are right. i've confused persistence unit metrics with ds metrics.

/ike


On Mar 13, 2012, at 10:39 PM, Alexey Loubyansky wrote:

> Or
>
> [standalone@localhost:9999 /] ls
> subsystem=datasources/data-source=ExampleDS/statistics=pool -l
>
> or
>
> [standalone@localhost:9999 /] cd
> subsystem=datasources/data-source=ExampleDS/statistics=pool
> [standalone@localhost:9999 statistics=pool] ls -l
>
>
> On 03/13/2012 06:51 PM, Carlo de Wolf wrote:
>> /subsystem=datasources/data-source=ExampleDS/statistics=pool:read-resource(include-runtime=true)
>> /subsystem=datasources/data-source=ExampleDS/statistics=jdbc:read-resource(include-runtime=true)
>>
>> or
>>
>> /subsystem=datasources/data-source=ExampleDS:read-resource(include-runtime=true,recursive=true)
>>
>> but that last one gives more than you asked for. :-)
>>
>> Carlo
>>
>> On 03/13/2012 02:48 PM, Wolf-Dieter Fink wrote:
>>> With the mngmt-console the statistics of Pool- and
>>> PreparedStatementCache usage can be displayed.
>>>
>>> But I did not found it via CLI cmd
>>>       data-source --profile=full --name=ExampleDS read-resource
>>>
>>> Is there a possibility to read this via CLI?
>>>
>>> - Wolf
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> [hidden email]
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev