| Author |
Message |
kukuwka
Joined: 08 Jul 2010 Posts: 2
|
Posted: Thu Jul 08, 2010 12:36 pm Post subject: Error on "Take Memory Snapshot" |
|
|
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 |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
|
| Back to top |
|
 |
kukuwka
Joined: 08 Jul 2010 Posts: 2
|
Posted: Sun Jul 11, 2010 7:26 am Post subject: |
|
|
Hi,
This solution is for Windows Server 2003 .
I have Windows Server 2008.
Thanks |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Mon Jul 12, 2010 4:31 pm Post subject: |
|
|
Did you still try changing the setting on Windows Server 2008?
Is it still throwing the error?
Stephen |
|
| Back to top |
|
 |
andegre
Joined: 31 May 2009 Posts: 8
|
Posted: Thu Jul 15, 2010 7:45 pm Post subject: Re: |
|
|
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 |
|
 |
amcclure
Joined: 09 Aug 2010 Posts: 1
|
Posted: Mon Aug 09, 2010 7:57 pm Post subject: |
|
|
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 |
|
 |
RW
Joined: 04 Oct 2011 Posts: 7
|
Posted: Wed Oct 05, 2011 12:30 pm Post subject: |
|
|
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 |
|
 |
Chris.Allen
Joined: 12 Mar 2009 Posts: 453
|
Posted: Fri Oct 14, 2011 4:45 pm Post subject: |
|
|
| 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 |
|
 |
Adam Hodge
Joined: 06 Mar 2012 Posts: 3
|
Posted: Tue Mar 06, 2012 3:01 pm Post subject: |
|
|
| I am in the same boat! Any suggestions for Windows Server 2003? |
|
| Back to top |
|
 |
|