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.
For dynamic attach, profiler actions are enabled and the UI is ready for a new profiler session shortly after invoking Detach without terminating the profiled application. However, the agent in profiled application still deinstruments its bytecode and blocks the comm port. Starting a new profiling session during this time fails. As a simple fix, the profiler session should be finished and actions enabled after fully deinstrumenting the detached application.
Also applies to direct attach - visible for a remote session after detaching and leaving the profiled app running.