Parfait via -javaagent option

Affichage de 15 messages sur 5
Parfait via -javaagent option Nathan Scott 21/11/13 16:01
Hi guys,

Does anyone know if its possible (or easily achievable) to use Parfait in an application via one of the java command line options?  (javaagent seems a good candidate)?  I suspect this would significantly lower the bar for entry for anyone wishing to try out Parfait.  There'd be no application-specific metrics this way, just the JVM metrics and perhaps some of the other odds-and-ends like Tomcat, but it would get people started.

Is javaagent the right approach?  (or agentlib, or...?)
http://javahowto.blogspot.com.au/2006/07/javaagent-option.html ... we don't have any of the magic glue layer discussed there, right?
I imagine a "name" option would need to be passed through via the command line, but that seems doable too...

cheers.

--
Nathan

Re: Parfait via -javaagent option tallpsmith 21/11/13 16:32
In the current Parfait form, don't easily just 'happen' without some initial setup still, one has to poke it (and quite a bit right now) to get things started.  Yes, this is where the javaagent option on the command line effectively could 'bootstrap' the initialization.  This is what AppDynamics/NewRelic do.

Still need some configuration items locally probably (maybe in built defaults can suffice).  


--
You received this message because you are subscribed to the Google Groups "parfait-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parfait-user...@googlegroups.com.
To post to this group, send email to parfai...@googlegroups.com.
Visit this group at http://groups.google.com/group/parfait-users.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Parfait via -javaagent option Nathan Scott 24/11/13 16:17
Hi Paul,

OK, good to know - thanks.

Any scope for one of the Java gurus over your way to tackle this one?  Else it's in our backlog now, we'll get to it eventually & send through some patches.  I will be in touch before any work starts, in case someone else has a crack first though.

cheers.

--
Nathan

Re: Parfait via -javaagent option tallpsmith 26/11/13 14:05
right now, we've got zero scope to even upgrade our PCP build in production... :-|  Never seen so many projects going on at once.


--
You received this message because you are subscribed to the Google Groups "parfait-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parfait-user...@googlegroups.com.
To post to this group, send email to parfai...@googlegroups.com.
Visit this group at http://groups.google.com/group/parfait-users.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Parfait via -javaagent option Nathan Scott 27/11/13 20:53
No worries at all.

I'm scanning through the code, looking, but not finding - is there an example or some test code in the repo (or anywhere else publicly available?) which gives code for exporting the JVM metrics?  (IIRC: jvm.compilation, memory.* - garbage collection counts, times, for the various memory areas - jmsmsgs.*, jdbc.* metrics even?).

If not, any chance someone could send through some pointers / sample code?

Thanks!