Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM Profile at JDK 1.7_21 crashes with "Access denied"

Tags:

java

jvm

May be you can help me with this problem.

Profiler crashes with "Access denied" message, then i start it for any local application. In a logfile I found:

java.io.IOException: Отказано в доступе
    at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method)
    at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.java:56)
    at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69)
    at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
    at org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:762)
    at org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:734)
    at com.sun.tools.visualvm.profiler.ApplicationProfilerView$MasterViewSupport.startProfiling(ApplicationProfilerView.java:309)
    at com.sun.tools.visualvm.profiler.ApplicationProfilerView$MasterViewSupport.access$900(ApplicationProfilerView.java:140)
    at com.sun.tools.visualvm.profiler.ApplicationProfilerView$MasterViewSupport$3.run(ApplicationProfilerView.java:262)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1372)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1952)

Application runs on the same JVM HotSpot 1.07.0_21 x32 (VisualVM from JDK 1.6 works fine), using just next options:

-client -Xmx1524M

Any suggestions?

UPD: OS is WindowsXP sp3 x32

like image 361
Turin Avatar asked Oct 02 '13 04:10

Turin


People also ask

Does VisualVM work with OpenJDK?

VisualVM is an open source tool to monitor JVM instances of each running JVM application. Its built-in features can be further enhanced by installing plugins. The users of Oracle JDK or OpenJDK 9 can download this open source tool from https://visualvm.github.io/index.html.

Does VisualVM work with Java 11?

Use VisualVM bundled with GraalVMGraalVM contains a fully compliant Java SE 8, Java SE 11, and Java SE 17 JDK distribution based on Oracle JDK and OpenJDK.

Is VisualVM part of JDK?

Java VisualVM was first bundled with the the Java platform, Standard Edition (Java SE) in JDK version 6, update 7.

What is Profiler in VisualVM?

The Profiler tab of an application enables you to start and stop the profiling session of a local application. Profiling results are displayed in the Profiler tab. You can use the toolbar to refresh the profiling results, invoke garbage collection and save the profiling data.


1 Answers

Have you checked their troubleshooting section?

in particular:

Insufficient permissions for %TMP%\hsperfdata_username folder - make sure you're able to create a file in the directory and eventually update the permissions for full folder access. Alternatively you can just re-create the folder which should automatically set the correct access rights. See see this forums.sun.com thread for more details.

like image 152
Lorenzo Boccaccia Avatar answered Sep 26 '22 17:09

Lorenzo Boccaccia