VisualVM has moved to GitHub!

RE: VisualVM on new laptop can't make local jmx connections

  • From: "KARR, DAVID" <dk068x@...>
  • To: "users@..." <users@...>
  • Subject: RE: VisualVM on new laptop can't make local jmx connections
  • Date: Tue, 6 May 2014 15:04:32 +0000
  • Accept-language: en-US

> -----Original Message-----
> From: Tomas Hurka [mailto:tomas.hurka@...]
> Sent: Tuesday, May 06, 2014 2:20 AM
> To: users@...
> Subject: Re: VisualVM on new laptop can't make local jmx connections
> 
> Hi David,
> 
> On 5 May 2014, at 17:09, KARR, DAVID <dk068x@...> wrote:
> >> On 5 May 2014, at 16:01, KARR, DAVID <dk068x@...> wrote:
> >> [..]
> >>>> So VisualVM is unable to set up JMX connection to both Eclipse and
> >>>> WebLogic. Am I right? Please post VisualVM's messages.log file and
> >>>> application snapshot of Eclipse processes.
> >>>>
> >>>
> >>> What exactly is "application snapshot of Eclipse processes"?
> >>
> >> See https://visualvm.java.net/snapshots.html section "Application
> >> Snapshots"
> >
> > Ok.
> > <application-1399302106393.apps><messages.log>
> 
> thanks for the info. It shows that your problem is caused by running
> VisualVM on 32bit JDK (C:\Program Files (x86)\Java\jdk1.8.0_05\) and
> Eclipse on 64bit JDK (C:\eclipse\Java\jdk1.8.0_05). In this situation
> VisualVM (via Attach API) is not able to enable JMX connection to
> applications running on 64bit JVM. The solution is to run VisualVM on
> 64bit JDK or enable local JMX monitoring via setting the following system
> property when you started the Eclipse application.
> 
> com.sun.management.jmxremote

Ok, first a couple of questions before I do that.  I noticed an Oracle docs 
page describing this property 
(http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html),
 it says that since JDK 1.6, it isn't necessary to set this property.  Any 
comment about that?

And just to be clear, you're saying that I either have to run VisualVM with a 
64-bit jdk OR run the target JVM with that system property set.  Is that what 
you're saying?

Also, I find it curious that these are the results I see when running the 
separate 1.3.7 VisualVM distribution.  My results when running the 
"jvisualvm" from the JDK are quite different.  I've tried running this from 
several of the JDKs I have installed, including the one that Eclipse is 
running.  I run it by specifying the full path to the executable.  When it 
comes up, the only JVM even present in the local list is the VisualVM process 
itself.  It doesn't even see the Eclipse process.  I tried running this both 
as an administrator and not.

I'll now try those two variations you described.


VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/04/2014

Re: VisualVM on new laptop can't make local jmx connections

Kirk Pepperdine 05/04/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/04/2014

Re: VisualVM on new laptop can't make local jmx connections

Kirk Pepperdine 05/04/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/04/2014

Re: VisualVM on new laptop can't make local jmx connections

Tomas Hurka 05/05/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/05/2014

Re: VisualVM on new laptop can't make local jmx connections

Tomas Hurka 05/05/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/05/2014

Re: VisualVM on new laptop can't make local jmx connections

Tomas Hurka 05/06/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/06/2014

Re: VisualVM on new laptop can't make local jmx connections

Tomas Hurka 05/06/2014

RE: VisualVM on new laptop can't make local jmx connections

KARR, DAVID 05/06/2014

Re: VisualVM on new laptop can't make local jmx connections

Tomas Hurka 05/06/2014
Terms of Use; Privacy Policy; Copyright ©2013-2017 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close