Red Gate forums :: View topic - Could not take snapshot. Err display as "Snapshot failed..."
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

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

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Tue Oct 04, 2011 2:57 pm    Post subject: Could not take snapshot. Err display as "Snapshot failed..." Reply with quote

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 ..Stop()
at ..Stop()
at ..()
at .??.()
at ?.?.?(Object , EventArgs )
at (Object , Object , EventArgs )
at ?.Invoke(Object , Object , EventArgs )
at .??..??.?()
at (Object )
at .Invoke(Object )
at ??.??.()

Caused by:

Timed out starting 'W3SVC'
RedGate.Profiler.Engine.Startup.IIS.ServiceUtilitiesException
at .?.(String )
at .?.()


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


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 ..Stop()
at ..Stop()
at ..()
at .??.()
at ?.?.?(Object , EventArgs )
at (Object , Object , EventArgs )
at ?.Invoke(Object , Object , EventArgs )
at .??..??.?()
at (Object )
at .Invoke(Object )
at ??.??.()

Caused by:

Timed out starting 'W3SVC'
RedGate.Profiler.Engine.Startup.IIS.ServiceUtilitiesException
at .?.(String )
at .?.()

But if i do not take any snapshot application works properly.

Below r the test details:

1. Application is using 2.0 framework
2. Single apppool
3. Could not use unused port option since, private bytes are not updating in the timeline( since this option create another w3wp )
4. Also tryied by updating "<gcsrver enable="false" >" in ASPnet.config file

It will be very great if you could help me in this. thanks in advance. [color=brown][/color]
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Tue Oct 04, 2011 4:20 pm    Post subject: Reply with quote

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

Well, for starters you can try opening a command prompt and running
Code:
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.
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Wed Oct 05, 2011 6:33 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Wed Oct 05, 2011 9:20 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Wed Oct 05, 2011 10:44 am    Post subject: Reply with quote

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. Sad
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Wed Oct 05, 2011 11:07 am    Post subject: Reply with quote

Did you try this?
http://www.red-gate.com/supportcenter/Content?c=ANTS_Memory_Profiler%5cknowledgebase%5camp_gcserver.htm&p=ANTS%20Memory%20Profiler
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Wed Oct 05, 2011 11:08 am    Post subject: Reply with quote

Oh, never mind. I see you did that already.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Wed Oct 05, 2011 3:11 pm    Post subject: Reply with quote

I see you have moved this discussion to a different thread...
http://www.red-gate.com/MessageBoard/viewtopic.php?p=51263#51263
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Fri Oct 07, 2011 6:33 am    Post subject: Reply with quote

yes, but didint got any solution on the same. Sad
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6671

PostPosted: Fri Oct 07, 2011 9:36 am    Post subject: Reply with quote

What version of Memory Profiler is this?
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Mon Oct 10, 2011 6:27 am    Post subject: Reply with quote

Its 6.0.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 591

PostPosted: Mon Oct 10, 2011 4:07 pm    Post subject: Reply with quote

We'd really need to reproduce this in house to know exactly what is happening - would you help us do that?
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Tue Oct 18, 2011 9:25 am    Post subject: Reply with quote

Yes sure.
Back to top
View user's profile Send private message
Adam Hodge



Joined: 06 Mar 2012
Posts: 3

PostPosted: Tue Mar 06, 2012 3:02 pm    Post subject: Reply with quote

The problem is fixed! You are quite right!
Back to top
View user's profile Send private message
mis5winslo



Joined: 05 Apr 2013
Posts: 1
Location: United States

PostPosted: Sun Apr 07, 2013 2:10 pm    Post subject: Neat Kid's book and its finest features. Reply with quote

I'm still receiving same problem

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

Neat Kid's book.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Reply to topic 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