How to enable the JConsole remote connection to dropwizard server to watch JMX counter

1,797 views
Skip to first unread message

Rocky Fan

unread,
Jun 27, 2013, 1:33:03 PM6/27/13
to dropwiz...@googlegroups.com
I build a service which is based on dropwizard. I want to see the performance count for the service.
I am able to use JConsole in local to connect the service instance and watch the counter. But I don't see any document to show up how to make configure in dropwizard to listen JConsole port so I can use JConsole to remote into the box and watch the counter.
If you could provide a sample configure, that would be great. Thanks.

Coda Hale

unread,
Jun 27, 2013, 2:26:06 PM6/27/13
to dropwiz...@googlegroups.com
http://docs.oracle.com/javase/6/docs/technotes/guides/management/agent.html
--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Coda Hale
http://codahale.com

mco...@rgare.com

unread,
Sep 10, 2014, 2:28:22 PM9/10/14
to dropwiz...@googlegroups.com
Rather than referring to reference documentation (which has not helped me even though I tried several of the things in it), does anybody actually have examples?  Is the JmxReporter started by default?  If so, is it already on a port?  If so, can I not change that port with the -D parm?  If it is, how do I find what port it started on?

mco...@rgare.com

unread,
Sep 11, 2014, 12:49:43 PM9/11/14
to dropwiz...@googlegroups.com
I figured it out from Mark Turansky's blog:

-Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

...to get started.

Mike

Aldrin Leal

unread,
Sep 11, 2014, 12:54:20 PM9/11/14
to dropwizard-user
I always suggest to use Jolokia. Its as simple as adding jolokia-core and declaring its servlet. Once its done, one could use Hawt (http://www.hawt.io/) to query JMX via HTTP

--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages