Red Gate forums :: View topic - Out Of Memory Exception
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

Out Of Memory Exception

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



Joined: 01 Sep 2009
Posts: 1

PostPosted: Tue Sep 01, 2009 3:25 pm    Post subject: Out Of Memory Exception Reply with quote

Hi All,

I would like to know whether there is anyone who can help me on this please.

I started up the profiler OK, took a snapshot straight away. Then, run through some script on the page for 10 mins. When I tried to take another snapshot, save the results or save the profiler , it throws me the error below:

Unable to save profiler results - exception details System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.ArrayList.set_Capacity(Int32 value)
at System.Collections.ArrayList.EnsureCapacity(Int32 min)
at System.Collections.ArrayList.Add(Object value)
at _7._1(Byte[] )
at _8._1(Object )
at _8._1(ObjectInfo )
at _23._1(_8 )
at _23._1(ArrayList )
at RedGate.Profiler.Engine.Memory.MemoryResults.SaveToDisk(String fileName)
at _5._3(IProfilerResults )

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

I have about 81GB of hard disk free and 10GB RAM avaliable.

Look forward to hearing from you.

Thanks in advanced.

Regards,
Lawrence
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Wed Sep 02, 2009 4:35 pm    Post subject: Reply with quote

Hi Lawrence,

No matter how much free RAM you've got, the size of the array list is limited by the number of elements you can store in an Int32 and the maximum amount of memory you can use in your process. On a Win32 system, that is 2GB, although the allocation algorithm used by the .NET garbage collecter typically sees heap exhaustion at around 1.5GB in my experience.

There is a possibility that you may not be able to get the results that you need unless you cut down the length of time you spend profiling the application or take snapshots more frequently.
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