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


Cable Car line smashmouth Stage being build in the nearby park Stretched Limo Community One Keynote javaone 2008 goodybag Charles Nutter & Guillaume Laforge Tim Bray introducing the (J)Ruby panel Acme Anvile at CommunityOne Keynote nearby hotel sea_lion Moscone Center - JavaOne Joshua Bloch at JavaOne2008 Greenland Okke en Rudie Rudie Hotel room alcatraz javaone2008 keynote pub
View more photos >

Categories



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