Red Gate forums :: View topic - ASP.NET Memory Profiling Questions
Return to www.red-gate.com RSS Feed Available

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

ASP.NET Memory Profiling Questions

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
randomsolutions



Joined: 01 Aug 2013
Posts: 1

PostPosted: Thu Aug 01, 2013 8:16 pm    Post subject: ASP.NET Memory Profiling Questions Reply with quote

Hello, I'm currently evaluating your (so far excellent) product and have a few questions.

1. When I profile my ASP.NET app, I see a large amount of free space (300MB). Does this have anything to do with memory fragmentation?

Total number of fragments: 14
Number of large fragments: 7
Wastage due to small fragments: 35.32kb (0.011% free memory)
Largest fragment: 88.6 MB (28.2% of free memory)

2. Is there a way to visualize the fragmentation?

3. All of my large object heap objects are object arrays attached to a GCHandle. Is there any way to identify what allocated them?

4. The total size of my objects on the Large Object Heap is about 635 KB (yes.. that small). Is it really possible that those tiny objects are casing my high free space issue?

5. Should I be running ASP.NET Profiling with debug=false in the web.config file?

6. Is there any way to start profiling IIS using Chrome? I hate trying to look at web api calls using IE.

7. Long shot question... I'm using JSON.Net, EntityFramework 5.0, Lucene.Net, and Bundling. Are there any known issues with these items and memory problems such as mine?

Thanks!
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 183

PostPosted: Sat Aug 03, 2013 12:28 am    Post subject: Reply with quote

Hi there and thanks for your post! Smile

Regarding your questions 1 and 4, it's a bit difficult to say without seeing your results. Could you kindly send them in to support@red-gate.com with the reference number F0075677 in the subject line?

2. Is there a way to visualize the fragmentation?

There is not a way to visualize the fragmentation, I'm afraid, but I'd be happy to make a feature request for this!

3. All of my large object heap objects are object arrays attached to a GCHandle. Is there any way to identify what allocated them?

Unfortunately no. :/ However, you can do a search through your code to see if any GChandles were allocated manually via GCHandle.Alloc(). Often times though, GChandles are allocated internally by .NET. For example, static variable storage is implemented internally by .NET as object arrays referenced by GC handles.

5. Should I be running ASP.NET Profiling with debug=false in the web.config file?

It's not necessary to run with debug=true but you may find it useful.. enabling debug will allow pdb files to be created so that all of your classes with source will show up in bold (this can make for easier filtering).

6. Is there any way to start profiling IIS using Chrome? I hate trying to look at web api calls using IE.

I believe the beta of v.8 should allow you to start profiling with Chrome (you can sign up for the beta program here: http://www.red-gate.com/labs/ants-memory-profiler/ but please note that this is a beta release so it may be buggy!)

Else the other option with version 7 is to minimize the IE instance that the profiler opens up when you start profiling and then just browse your site from Chrome--the profiler will still pick up on any activity from the IIS process.

7. Long shot question... I'm using JSON.Net, EntityFramework 5.0, Lucene.Net, and Bundling. Are there any known issues with these items and memory problems such as mine?

There aren't any issues that I'm aware of.
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
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