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.
Product Version: NetBeans IDE Dev (Build 200710090000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Steps to reproduce: Create new Anagram Game project. Run it without profiler. Invoke Attach Profiler and select Local Attach, Dynamic attach to External Application Open SPT dialog. Select memory profiling: Record both object creation and GC. Check Record stack trace option. Attach profiler to Anagram Game application Invoke Take Snapshot from Control Panel. Profiled application drops. There are also exception in log. See attachment.
Created attachment 50504 [details] Stacktrace log for this issue
1) It looks like JVM bug with dynamic attach - profiled JVM crashed. 2) Find hs_err*.log and attach it.
Created attachment 50507 [details] JVM log file
Indeed it looks like problem with dynamic attach. Try to disbale class-sharing (-Xshare:off) for profiled application.
It works when class sharing is disabled.
Removed INCOMPLETE due to mkhramov answer.
in addition to not being INCOMPLETE it's also a duplicate *** This issue has been marked as a duplicate of 113847 ***
Verified duplicate