Date: Thu, 22 Jul 2010 19:50:04 GMT From: Jochen Keil <jochen.keil@gmail.com> To: freebsd-java@FreeBSD.org Subject: Re: ports/116082: java/linux-sun-jdk16 jconsole is unable to connect to a local process Message-ID: <201007221950.o6MJo4qD046554@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/116082; it has been noted by GNATS. From: Jochen Keil <jochen.keil@gmail.com> To: bug-followup@FreeBSD.org, mirya@zoc.com.ua Cc: Subject: Re: ports/116082: java/linux-sun-jdk16 jconsole is unable to connect to a local process Date: Thu, 22 Jul 2010 21:24:24 +0200 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, even though the original report is some 3 years old now i'd like to remark that i had the same problem. I figured that the problem is that the "management agent" was not started (so said the error message). So after some googling i found out that i need to specify com.sun.management.jmxremote as VM argument. This means that you need to start your java app like this: java -Dcom.sun.management.jmxremote foo.MyBarClass Using this jconsole works like a charm. Hope this helps! Best regards, Jochen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxImugACgkQtVwvsA+W4CAMcgCfQwuvSwjrXN9GP+Y4sFcdFhx8 ZdoAnAgNJ43xqjPDQjUT5B18YwYfAlR/ =x9II -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007221950.o6MJo4qD046554>