Using Redgate’s ANT .net Profile, Nails Memory Problem in 5 Minutes!

I recently added a cool new feature to our Silicon Valley Code Camp web site that lets attendees authenticate their accounts with the meetup OAuth api and then we track the meetups that add us (SVCC) as a sponsor.  We then do a nice aggregation on the bottom of all our web pages, and one dedicated meetup page (http://www.siliconvalley-codecamp.com/meetup) of all those sponsors.  After adding this new feature (and sending out 10,000 emails announcing it), our web site started running out of memory.  Ouch!

With 5 minutes of installation and setup, I skipped reading the tutorials, just said launch the site with my IIS Express.  I pointed ANT at the base of my web site, told ANT I was using IIS Express and then simply said “Start Profiling Memory”.  It launch a browser and showed me a graph showing my memory climbing past a gig.   pushed the “take snapshot” button and instantly I could see where all my memory was going. 

Bottom line is I was databasing the raw JSON file which is really unnecessary and it was getting quite large.  I’m going to stop doing that and I’m betting my problem goes away.

You can see the graph ANT created for me with the offending memory allocation.  Nailed it!  Nice job Redgate.  Jus what I’ve come to expect from those guys.

image

That’s it for now!

About Peter Kellner

Peter is a software professional specializing in mobile and web technologies. He has also been a Microsoft MVP since 2007. In addition, he's a multi-course video author at Pluralsight. To read more about Peter Kellner and his experience click here. For information about how Peter Kellner might be able to help you with your project click here.

Follow me:


Follow

Get every new post delivered to your Inbox

Join other followers: