I am logged in as Administrator. I am trying to attach Amplifier to 32-bit w3wp.exe running as NetworkService. I get this error:
Error: Failed to attach to the process with the specified PID. Specify another PID and try attaching again. Error: System error 0x0 : OpenProcess : The operation completed successfully.Pin is exiting due to fatal error
When I change the process identity to my own (Administrator) I get this error:
Error: Failed to allocate Injector, Error = INJECTOR_ERR_FAILED_TO_CREATE_REMOTE_THREAD Pin is exiting due to fatal error
I can attach to a 32-bit process running in my own login session with no problems.
Did anybody succeed in attaching to w3wp.exe?
Details: VTune Amplifier XE 2011 Windows 2008 SP2 VM on Hyper-V 6GB RAM, 4 virtual processors X5460
I checked with the developers and it
appears this is a generic problem for any kind of service host processes, not only for
w3wp.exe. They are investigating.
In the meantime, you could use lightweight-hotspots to collect hardware-based sampling data. You just won't get the call stacks. Hardware-based sampling helps you tune the code execution versus algorithm tuning.
I see. You realize that profiling on a VM, without any insight into the VM, makes your analysis somewhat suspect, don't you? The VM controls access to resources and context switches, which you generally can't change, and the Amplifier XE will not identify what impact the VM management is having on your app.
In an effort to better understand your usage model, can you explain what you hope to gain my profiling the application as it runs on a VM? Also, what feature enhancements in the Amplifier XE product would make if more valuable to you?
This has been confirmed by Intel supportas a bug. The more general problem is that Amplifier cannot attach to a process in a different login session. Even if the different login session is using the same credentials as the Amplifier. At the same time Visual Studio attaches to the same process without a problem.
Can you tell me what kind of app or extension you were developing such that you needed to attach to the this network service? We want to make sure that our solution works for you and others developing this time of application. Thanks.
MrAnderson, as my initial post indicates, this is a web service hosted by IIS. The application is a .Net WCF service. The process I am trying to attach to is w3wp.exe. This specific case regards 32-bit w3wp.exe. The OS is 64-bit 2008 Server running in a Hyper-V virtual machine.