Once in a while I tend to use JConsole for basic profiling of a Java process.

Somehow I always forget which flag I need to set to enable remote connections to a process. And yes, I know the option is hidden somewhere on page 3 of the documentation…

You need to add the following in the VM arguments:

-Dcom.sun.management.jmxremote

After which you can just connect JConcole to the pid of the process you’re interested in.


0 Responses to “Connecting JConsole to a Java process: the missing -D option”

  1. No Comments

Leave a Reply





About

Welcome to the weblog of Peter Maas. Here you'll find various posts related to stuff I like (like my kids and espresso) and stuff I do (like developing software).

JavaOne 2008 Pictures


golden_gate_warning_sign javaone2008 keynote Acme Anvile at CommunityOne Keynote Okke en Rudie Moscone Center - JavaOne pub Tim Bray introducing the (J)Ruby panel nearby hotel Joshua Bloch at JavaOne2008 javaone 2008 goodybag alcatraz Java + You on a cab smashmouth Cable Car line sea_lion Community One Keynote Scribbled Sun Logo Hotel room Stretched Limo Golden Gate
View more photos >

Categories



Meld u aan voor PayPal en begin direct met het accepteren van creditcardbetalingen.