NmpCore - Cannot attach to process with id ####
NmpCore - Cannot attach to process with id ####
Greetings
I was looking at using your tool to diagnose an issue where an IIS worker process is consuming a large number of private bytes. I was thinking I could use NmpCore to attach to an existing w3wp.exe worker process to create a dump of memory to use in the main tool.
According to IIS the app pool is running v4.0 of .Net framework in Integrated mode.
NmpCore returns an error that it cannot attache to the process.
If I run it against the pid - I get the cannot attach error.
If I run it against the service name - it first gives the error about .Net Framework 4.0 and asing me to use /r
When I include the /r - it gives the cannot attach error.
Any thoughts on this ?
Regards,
Gary Bartlett
I was looking at using your tool to diagnose an issue where an IIS worker process is consuming a large number of private bytes. I was thinking I could use NmpCore to attach to an existing w3wp.exe worker process to create a dump of memory to use in the main tool.
According to IIS the app pool is running v4.0 of .Net framework in Integrated mode.
NmpCore returns an error that it cannot attache to the process.
If I run it against the pid - I get the cannot attach error.
If I run it against the service name - it first gives the error about .Net Framework 4.0 and asing me to use /r
When I include the /r - it gives the cannot attach error.
Any thoughts on this ?
Regards,
Gary Bartlett
-
- Posts: 1030
- Joined: Wed Mar 02, 2005 7:53 pm
Re: NmpCore - Cannot attach to process with id ####
Are you running the NmpCore tool under an administrative command prompt? NmpCore cannot attach to a service process unless it has administrative rights.
Best regards,
Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
SciTech Software AB
Re: NmpCore - Cannot attach to process with id ####
Yes, I was signed in as the Administrator on the server when I executed the NmpCore executable.
-
- Posts: 1030
- Joined: Wed Mar 02, 2005 7:53 pm
Re: NmpCore - Cannot attach to process with id ####
We have now tested attaching to the w3wp.exe process and started profiling IIS on several different platforms and using .NET Framework 2.0/4.0/4.5. However, we have not been able to reproduce a problem with ASP.NET profiling under IIS.
How are you using NmpCore to profile ASP.NET? To attach to the ASP.NET worker process, you need to run the command below (in an adminstrative command prompt):
or
You can also start IIS under the profiler to get more detailed information. In that case you need to use the /asp command line argument. You cannot use the /svc command line argument, since more than one service is involved when profiling IIS.
How are you using NmpCore to profile ASP.NET? To attach to the ASP.NET worker process, you need to run the command below (in an adminstrative command prompt):
Code: Select all
NmpCore /a w3wp.exe
Code: Select all
NmpCore /a <pid of w3wp.exe>
Code: Select all
NmpCore /asp
Best regards,
Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
SciTech Software AB
Who is online
Users browsing this forum: No registered users and 10 guests