| Author |
Message |
leskil
Joined: 18 Nov 2009 Posts: 2
|
Posted: Wed Nov 18, 2009 1:30 pm Post subject: Hang when taking memory snapshot |
|
|
Hi,
I'm profiling an ASP.NET web site hosted in the local IIS 7 on Windows 2008 64-bit.
Whenever I try to take a memory snapshot, the profiler hangs with the "Taking snapshot".
Are there any workaround for this?
I have added to content of the log file below.
Thanks,
Lasse
--
Log:
18 Nov 2009 13:13:14.635 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Failed to retrieve message from core
18 Nov 2009 13:13:14.900 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Received a 0-length message
18 Nov 2009 13:14:05.541 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Pipe has been closed; most likely the process being profiled has terminated.
18 Nov 2009 13:14:05.572 [37] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to check process ID: Instance 'w3wp' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.a(Object , UpdateTimerElapsedEventArgs )
18 Nov 2009 13:14:05.572 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process 3564 is apparently not running: Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.572 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.572 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - System.ArgumentException
18 Nov 2009 13:14:05.572 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at RedGate.Profiler.Monitoring.PerformanceCounterFactory.GetInstanceNameForProcessID(Int32 processID)
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to check process ID: Instance 'w3wp' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.a(Object , UpdateTimerElapsedEventArgs )
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process 3564 is apparently not running: Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - System.ArgumentException
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at RedGate.Profiler.Monitoring.PerformanceCounterFactory.GetInstanceNameForProcessID(Int32 processID)
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to retrieve counter sample: Instance 'w3wp' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.a(Object , UpdateTimerElapsedEventArgs )
18 Nov 2009 13:14:05.588 [37] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to check process ID: Instance 'w3wp' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.a(Object , UpdateTimerElapsedEventArgs )
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process 3564 is apparently not running: Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - System.ArgumentException
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at RedGate.Profiler.Monitoring.PerformanceCounterFactory.GetInstanceNameForProcessID(Int32 processID)
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to check process ID: Instance 'w3wp' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.a(Object , UpdateTimerElapsedEventArgs )
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process 3564 is apparently not running: Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process with an Id of 3564 is not running.
18 Nov 2009 13:14:05.604 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - System.ArgumentException
18 Nov 2009 13:14:05.619 [37] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at RedGate.Profiler.Monitoring.PerformanceCounterFactory.GetInstanceNameForProcessID(Int32 processID)
18 Nov 2009 13:14:37.666 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Sessions.IISSession - The local app data path for IIS is C:\Users\les\AppData\Local, so ANTS will use C:\Users\les\AppData\Local\Red Gate\ANTS Profiler to store results
18 Nov 2009 13:16:43.027 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Failed to retrieve message from core
18 Nov 2009 13:16:43.292 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Received a 0-length message |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Nov 19, 2009 3:15 pm Post subject: |
|
|
Hello,
The evidence suggests that ANTS Memory profiler is causing the worker process to crash. There is a named pipe created inside w3wp's process that sends the data into the ANTS Memory Profiler process. Of course the cause of this is unclear. I can send you an email and we can try to work out the root cause of this crash, which may involve getting a crash dump from w3wp.exe. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
leskil
Joined: 18 Nov 2009 Posts: 2
|
Posted: Fri Nov 20, 2009 9:25 am Post subject: |
|
|
Hi Brian,
That would be great - I'll send you a message with my e-mail.
Thanks,
Lasse |
|
| Back to top |
|
 |
Chris.Allen
Joined: 12 Mar 2009 Posts: 443
|
Posted: Mon Jan 04, 2010 3:28 pm Post subject: |
|
|
Time has shown that errors likw this appear to be an issue caused by a bug in the .NET profiling interface. Some of the int32 arrays being allocated are not being reported by .NET as objects to the profiler, although the objects that reference them are (and are apparently still valid as objects and not candidates for garbage collection).
What we have found that works is disabling the server garbage collector as described here: <http://support.microsoft.com/kb/911716>
Remember- "server GC" actually means multi-core GC.
If that doesn't work, mail us at support@red-gate.com for an update which works better in some cases like these. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group