Red Gate forums :: View topic - Error on "Take Memory Snapshot"
Return to www.red-gate.com RSS Feed Available

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

Error on "Take Memory Snapshot"

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



Joined: 08 Jul 2010
Posts: 2

PostPosted: Thu Jul 08, 2010 12:36 pm    Post subject: Error on "Take Memory Snapshot" Reply with quote

Hi,

When I try press "Take Memory Snapshot" I receive the next error:

The snapshot failed because .NET did not report every referenced object. This failure is most likely due to a bug in version 2 of the CLR that can be triggered when the garbage collector is operating in 'server mode' and the target application has many large objects.You can work around this bug by manually switching your application to the workstation garbage collector. See the MSDN documentation on the gcServer configuration option for information on how to acheive this.
Q
at P.g(Object , EventArgs )
at T.<>c__DisplayClass16.<backer_SnapshotCompleted>b__15()
at O.b()

How can I avoid it?

Thanks,
kukuwka
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Thu Jul 08, 2010 1:29 pm    Post subject: Reply with quote

See the MSDN documentation on the gcServer configuration option for information on how to acheive this.

http://support.microsoft.com/kb/911716
Back to top
View user's profile Send private message
kukuwka



Joined: 08 Jul 2010
Posts: 2

PostPosted: Sun Jul 11, 2010 7:26 am    Post subject: Reply with quote

Hi,
This solution is for Windows Server 2003 .
I have Windows Server 2008.

Thanks
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Mon Jul 12, 2010 4:31 pm    Post subject: Reply with quote

Did you still try changing the setting on Windows Server 2008?

Is it still throwing the error?

Stephen
Back to top
View user's profile Send private message
andegre



Joined: 31 May 2009
Posts: 8

PostPosted: Thu Jul 15, 2010 7:45 pm    Post subject: Re: Reply with quote

StephenC wrote:
See the MSDN documentation on the gcServer configuration option for information on how to acheive this.

http://support.microsoft.com/kb/911716


Ok, I've read this article, but it also says that
Quote:
The Workstation garbage collector is optimized for low latency. Low latency is typically required for client applications. However, low latency may cause decreased throughput after you configure the .NET Framework common language runtime to use the Workstation garbage collector.


I can't afford to run my production environment like this if we are already having performance problems. Or, are you saying to just change this setting in order for the snapshot to work?

FYI - the only way to reproduce our "memory leak" is in a production environment, we are not able to reproduce the load, or the leak in a test environment so the above suggestion may not work for me.

Please advise, thanks!
Back to top
View user's profile Send private message
amcclure



Joined: 09 Aug 2010
Posts: 1

PostPosted: Mon Aug 09, 2010 7:57 pm    Post subject: Reply with quote

I am hitting this error also:
The snapshot failed because .NET did not report every referenced object. ...

I do not always get it but seem to get always when doing a large memory operation. Can this be caused by an out of memory condition other then the one related to gcServer. I have added the gcserver enabled="false" in the machine.config and it helped. before that i always got the above error. when taking a snapshot. I am trying to profile a wcf service.
Back to top
View user's profile Send private message
RW



Joined: 04 Oct 2011
Posts: 7

PostPosted: Wed Oct 05, 2011 12:30 pm    Post subject: Reply with quote

Hi,
Have u done the changes in Machine.config or ASPnet.config??
I am facing the same problem even after the change in ASPnet.config file.

Please reply. Thanks.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Fri Oct 14, 2011 4:45 pm    Post subject: Reply with quote

If our current documentation is not working - would anyone be able to help us reproduce this exact issue in-house? If so, please contact support@red-gate.com directly. Thanks!
Back to top
View user's profile Send private message
Adam Hodge



Joined: 06 Mar 2012
Posts: 3

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

I am in the same boat! Any suggestions for Windows Server 2003?
Back to top
View user's profile Send private message
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