| 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). -- |
| Re: Parfait via -javaagent option | Nathan Scott | 24/11/13 16:17 | Hi Paul, OK, good to know - thanks. -- |
| 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.
|
| 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! |