From owner-freebsd-java@FreeBSD.ORG Thu Jul 22 19:50:04 2010 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66DFB1065674 for ; Thu, 22 Jul 2010 19:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 55CFA8FC1A for ; Thu, 22 Jul 2010 19:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6MJo4nD046557 for ; Thu, 22 Jul 2010 19:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6MJo4qD046554; Thu, 22 Jul 2010 19:50:04 GMT (envelope-from gnats) Date: Thu, 22 Jul 2010 19:50:04 GMT Message-Id: <201007221950.o6MJo4qD046554@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jochen Keil Cc: Subject: Re: ports/116082: java/linux-sun-jdk16 jconsole is unable to connect to a local process X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jochen Keil List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 19:50:04 -0000 The following reply was made to PR ports/116082; it has been noted by GNATS. From: Jochen Keil 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-----