AFAIK, recent nightly builds already add this agent automatically (it's
hard coded in launcher code) to the server VM. So, all you really need
is the btrace-agent.jar in lib/monitoring and that's it. Just do
asadmin start-domain.
Naresh wrote:
> Hi,
>
> I have seen somewhere that GlassFish V3 could be started with BTrace
> support using the command [1].
> I tried it and it works great.
> Wanted to check if there is a command line flag which can be used with
> the *asadmin start-domain* command, in order to enable BTrace.
>
> [1] java
> -javaagent:./glassfish/lib/monitor/btrace-agent.jar=dumpClasses=true,unsafe=true
> -jar ./glassfish/modules/glassfish.jar
>
> Thanks,
> Naresh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>