ports/116082: java/linux-sun-jdk16 jconsole is unable to connect
to a local process
Jochen Keil
jochen.keil at gmail.com
Thu Jul 22 19:50:04 UTC 2010
The following reply was made to PR ports/116082; it has been noted by GNATS.
From: Jochen Keil <jochen.keil at gmail.com>
To: bug-followup at FreeBSD.org, mirya at 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-----
More information about the freebsd-java
mailing list