Could not take snapshot. Err display as "Snapshot failed..."
RW
Posts: 8
Hi,
We are trying to find memory leak issue using Ants memoy profiler. When I am trying to take first snapshot I am getting error as
"An unhandled win32 exception occured in W3wp.exe".
Error stopping W3svc.
"Snapshot failed because .Net did not report every..."
Error stopping W3SVC
RedGate.Profiler.Engine.Startup.IIS.IISException
stack trace:
at .?.()
at .?.StopProfilingIIS()
at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StopProfilingIIS()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object
server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[]
args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr,
Boolean fExecuteInContext)
rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IIISActuator`1.StopProfilingIIS()
at ?.?.Stop(IEnumerable`1 )
at
We are trying to find memory leak issue using Ants memoy profiler. When I am trying to take first snapshot I am getting error as
"An unhandled win32 exception occured in W3wp.exe".
Error stopping W3svc.
"Snapshot failed because .Net did not report every..."
Error stopping W3SVC
RedGate.Profiler.Engine.Startup.IIS.IISException
stack trace:
at .?.()
at .?.StopProfilingIIS()
at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StopProfilingIIS()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object
server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[]
args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr,
Boolean fExecuteInContext)
rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IIISActuator`1.StopProfilingIIS()
at ?.?.Stop(IEnumerable`1 )
at
Comments
Well, for starters you can try opening a command prompt and running to rebuild the performance counters so you can see them in the timeline. The other problems -- sheesh.
I don't understand how you have the ability to take a snapshot when Profiler is telling you it can't even start W3SVC.
Or you don't get "private bytes counter" because ANTS causes w3wp.exe to crash, as is common.
I'd check the application event log. If you're attempting IIS 7, then you should see something from "HostableWebCore" in there.
Sorry there is no off-the-shelf answer and no supportability provided by Profiler to troubleshoot the problem.
I ran the above command. But still private bytes are not updating in the timeline by using 'Unused port' option.
Firstly i want to tell u that I am getting above mentioned error only if i use Original port option. that time private bytes are getting updated in timeline. But could not complete the snapshot since 'An unhandeled win32 exception occured in w3wp.exe' n above metioned error
But when I try to use "Unused port" that time Private bytes are not getting updated in timeline.
Please suggest. Thanks.
What details do you have about the Win32 exception?
Thanks again.
Actually i am able to profiling using 'unused port' option, but now I am getting error as "The snapshot failed because .NET did not report every referenced object... manually switch your application to the workstation garbage collector." while taking snapshot.
i have also done the changes for gcserver in the ASPnet.config file
Steps executed:
1. Start profiling with Unused port
2. Login to application and go to the testpage
3. Take snapshot [baseline - this is successfully done]
4. Start the process which we need to analyze for memory leakage
5. Take snashot after 10-15 mnts.
Above error get display. Process get stopped When I checked App pool i found that it been stopped.
http://www.red-gate.com/supportcenter/C ... 20Profiler
http://www.red-gate.com/MessageBoard/vi ... 1263#51263
Neat Kid's book.