Could not take snapshot. Err display as "Snapshot failed..."

Code and memory profiling for .NET developers.

Moderators: Brian Donahue, richardjm, StephenC

Could not take snapshot. Err display as "Snapshot failed..."

Postby RW » Tue Oct 04, 2011 2:57 pm

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
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Brian Donahue » Tue Oct 04, 2011 4:20 pm

Sounds like your typical intractably-complicated IIS problem caused by ANTS.

Well, for starters you can try opening a command prompt and running
Code: Select all
lodctr /R
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.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby RW » Wed Oct 05, 2011 6:33 am

Hi Thanks for your quick reply.
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.
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Brian Donahue » Wed Oct 05, 2011 9:20 am

Well, it sounds like the typical "ANTS Profiler crashes your web application" but in order to find out why we always have to debug w3wp.

What details do you have about the Win32 exception?
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby RW » Wed Oct 05, 2011 10:44 am

Hi Brian,
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. :(
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Brian Donahue » Wed Oct 05, 2011 11:07 am

Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Wed Oct 05, 2011 11:08 am

Oh, never mind. I see you did that already.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Wed Oct 05, 2011 3:11 pm

I see you have moved this discussion to a different thread...
http://www.red-gate.com/MessageBoard/vi ... 1263#51263
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby RW » Fri Oct 07, 2011 6:33 am

yes, but didint got any solution on the same. :(
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Brian Donahue » Fri Oct 07, 2011 9:36 am

What version of Memory Profiler is this?
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby RW » Mon Oct 10, 2011 6:27 am

Its 6.0.
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Chris.Allen » Mon Oct 10, 2011 4:07 pm

We'd really need to reproduce this in house to know exactly what is happening - would you help us do that?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby RW » Tue Oct 18, 2011 9:25 am

Yes sure.
RW
 
Posts: 7
Joined: Tue Oct 04, 2011 2:37 pm

Postby Adam Hodge » Tue Mar 06, 2012 3:02 pm

The problem is fixed! You are quite right!
Adam Hodge
 
Posts: 3
Joined: Tue Mar 06, 2012 2:53 pm

Neat Kid's book and its finest features.

Postby mis5winslo » Sun Apr 07, 2013 2:10 pm

I'm still receiving same problem

----------------

Neat Kid's book.
mis5winslo
 
Posts: 1
Joined: Fri Apr 05, 2013 12:59 pm
Location: United States


Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest

cron