| Author |
Message |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Tue Oct 04, 2011 2:57 pm Post subject: Could not take snapshot. Err display as "Snapshot failed..." |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue Oct 04, 2011 4:20 pm Post subject: |
|
|
Sounds like your typical intractably-complicated IIS problem caused by ANTS.
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. _________________ 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 |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Wed Oct 05, 2011 6:33 am Post subject: |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Wed Oct 05, 2011 9:20 am Post subject: |
|
|
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
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 |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Wed Oct 05, 2011 10:44 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Wed Oct 05, 2011 11:08 am Post subject: |
|
|
Oh, never mind. I see you did that already. _________________ 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
|
| Back to top |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Fri Oct 07, 2011 6:33 am Post subject: |
|
|
yes, but didint got any solution on the same.  |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Fri Oct 07, 2011 9:36 am Post subject: |
|
|
What version of Memory Profiler is this? _________________ 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 |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Mon Oct 10, 2011 6:27 am Post subject: |
|
|
| Its 6.0. |
|
| Back to top |
|
 |
Chris.Allen
Joined: 12 Mar 2009 Posts: 443
|
Posted: Mon Oct 10, 2011 4:07 pm Post subject: |
|
|
| We'd really need to reproduce this in house to know exactly what is happening - would you help us do that? |
|
| Back to top |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Tue Oct 18, 2011 9:25 am Post subject: |
|
|
| Yes sure. |
|
| Back to top |
|
 |
Adam Hodge
Joined: 06 Mar 2012 Posts: 3
|
Posted: Tue Mar 06, 2012 3:02 pm Post subject: |
|
|
| The problem is fixed! You are quite right! |
|
| Back to top |
|
 |
mis5winslo
Joined: 05 Apr 2013 Posts: 1 Location: United States
|
Posted: Sun Apr 07, 2013 2:10 pm Post subject: Neat Kid's book and its finest features. |
|
|
I'm still receiving same problem
----------------
Neat Kid's book. |
|
| Back to top |
|
 |
|