Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 625 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to measure memory usage for a Live ASP.NET MVC web application?

#1
So right off the bat, not sure if this question is better suited for another StackExchange site.

I've got an ASP.NET MVC 3 web application running on Windows Server 2008 and IIS 7.5

Site runs fine initially, but i can see the memory usage gradually growing. After about 12 hours it's nearly out of memory and the site chokes.

I'm using a lot of caching, so i'm thinking this combined with some possibly memory leaks is the cause of the issue.

**So my question -** what's the best way (tools, for example) to monitor *memory usage* on a web server running ASP.NET MVC?

In the past i've used good old' perfmon and put the IIS counters on to measure these things.

It this still the best way, and if so, can someone recommend a good perfmon counter template for my scenario?
Reply

#2
Perfmon's counters are still a good technique (and free!).

[PAL][1] (Performance Analysis of Logs), a free tool, has an ASP.NET perfmon counter template for general health (in addition to generating reports of counter log files based on thresholds).

Check out:

- [.NET Debugging Demos Lab 7: Memory Leak][2]

- [.NET Memory Leak Case Study: The Event Handlers That Made The Memory Baloon][3]

- [Tracking down managed memory leaks (how to find a GC leak)][4]

- [Determine if your .NET Application has a Memory Leak][5]


Commercial tools like [MemProfiler][6], RedGate's [memory profiling tool][7] and [JetBrains Profiler][8] are all very good (and all have free trials).


[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

[4]:

[To see links please register here]

[5]:

[To see links please register here]

[6]:

[To see links please register here]

[7]:

[To see links please register here]

[8]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through