users@glassfish.java.net

Re: How to attach a btrace script to GlassFish?

From: Sanjeeb Sahoo <sahoo_at_sun.com>
Date: Thu, 26 Aug 2010 22:55:59 +0530

I found the answer after looking at GFLauncher.java. The launcher does
not add btrace agent option if user has already added it in domain.xml.
So, a simple way to start btrace agent in server mode is to add
something like this in domain.xml:

<jvm-options>-javaagent:/space/ss141213/WS/gf/v3/publish/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=false,port=2020</jvm-options>

Thanks,
Sahoo
On Thursday 26 August 2010 02:04 PM, Sanjeeb Sahoo wrote:
> I want to trace something in GlassFish and I am facing the issue
> reported in [1]. Must I disable monitoring to use btrace tool or is
> there a location server is watching for btrace scripts? I though as
> part of monitoring work in v3, we were going to allow user to develop
> their own scripts. Didn't we implement that feature?
>
> Thanks,
> Sahoo
>
> [1]
> http://weblogs.java.net/blog/jjviana/archive/2010/07/14/using-btrace-glassfish-v3
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>