This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Don't know if this is a NetBeans issue, but when I am using jVisualVM and try to do a CPU profile of NetBeans (7.0.1 or 7.1 Beta) a "black hole" happens: NetBeans freezes and I can't close the window, can't do anything, the NetBeans window becomes black if I minimize and restore it. Product Version = NetBeans IDE 7.0.1 (Build 201107282000) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_27 Runtime = Java HotSpot(TM) Server VM 20.2-b06
Created attachment 111489 [details] jvisualvm about
Created attachment 111490 [details] jVisualVM before starting profile
Created attachment 111491 [details] jVisualVM running
Created attachment 111492 [details] jVisualVM running (2)
Created attachment 111493 [details] The "Black Hole"
Maybe I just have to wait for the profiling to finish, but the strange part is that I cant close NetBeans. I have to go to the Task Manager to kill the process.
Created attachment 111494 [details] jVisualVM running (3)
I think is not really a bug... Just have to wait for profiler to run. It took a long while for NetBeans to return to normality, but it returned.
From the screenshots it's clear that you're trying to profile all classes in the NetBeans JVM incl. JDK classes. This imposes an extreme overhead causing the described problems - the application is unable to repaint its UI and doesn't respond to events like clicking the close button. The suggested way of profiling large applications is to identify the possible bottleneck using Sampler and then use Profiler configured to profile just several classes. See these articles for more details on configuring the Profiler: - http://blogs.oracle.com/nbprofiler/entry/profiling_with_visualvm_part_1 - http://blogs.oracle.com/nbprofiler/entry/profiling_with_visualvm_part_2 Closing as invalid, not a bug.
Note that the problem with repainting is caused by instrumenting of all classes. Once the classes are instrumented, NetBeans will start repainting itself.
Ok, thanks.