VisualVM cannot perform profiling under Windows XP

I am a new VisualVM user; good tool, but currently I cannot use profile and check which variables are allocated. Here's the problem.

To use the profile, I have to do a calibration, which was not done when I first started VisualVM. First I tried to go to "Tools / Options" in the main menu, then I clicked "Manage". After that, I selected the JDK which I am currently using with my Eclipse Kepler IDE. The selected file is located in the G: \ JavaJdk \ jdk1.7.0_67 \ bin \ java.exe folder.

When I click on calibration, VisualVM stucks says "Connect to target virtual machine". Nothing happens: by clicking "Cancel", you will get an empty window that says "Data transfer error during instrument calibration", and then another titler of the "Error" window without displaying an error.

Launching java process and clicking on it from main VisualVM window. I can click the Profiler tab: by clicking the Memory button, you have to tell me to calibrate, so I click OK, but it gets confused again during the connect phase. By clicking Cancel I get the same data transfer error and then "Profile profile data file does not exist", machinedata.jdk17 file not found.

My OS is Windows XP and VisualVM version is 1.3.8. I closed sjype, antivirus, Apache and disabled Windows firewall Please tell me if you need any detail.

+3


source to share


2 answers


Try using VisualVM 1.3.7, which was released before the end of support for Windows XP. You can download VisualVM 1.3.7 here



+2


source


I had the same problem on Windows 7 with JDK 8. What ultimately helped me was to start the Profiler agent manually as described in this post in German .



  • Note the ProfilerServer and its PID in the JavaVava VisualVM process list when it tries to start calibration.
  • Have a look at the complete command line in procexp.exe or some other tool. In my case it was:

    "C: \ Program Files \ Java \ jdk1.8.0_91 \ bin \ java.exe" "-agentpath: C: / Program Files / VisualVM / profiler / lib / deployed / jdk16 / windows-amd64 / profilerinterface.dll" "- Xbootclasspath / a: C: \ Program Files \ VisualVM \ profiler \ lib \ jfluid-server.jar; C: \ Program Files \ VisualVM \ profiler \ lib \ jfluid-server-15.jar "org.netbeans.lib.profiler. server.ProfilerServer "C: / Program Files / VisualVM / profiler / lib / deployed / jdk16 / windows-amd64" 5141 10 ____ Profiler + Calibration + Run ____

  • Run this exact command line manually.

  • Start VisualVM, go to Tools -> Options -> Control, do the calibration, it should work.
+2


source







All Articles