Link to home
Start Free TrialLog in
Avatar of purplesoup
purplesoupFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.NET Memory Leak

We've got an IIS memory leak on Windows Server 2008 R2 64-bit.

The memory usage climbs steadily to 3 GB.

I've used the ANTS memory profiler to see what is happening and have a lot of memory held by _TimerCallback where  System.Threading.TimerCallback calls System.Web.Caching.CacheExpires.

We're not aware of any specific caching code in the app, so this seems to be something IIS is doing.

Can anyone suggest what the cause might be?
SOLUTION
Avatar of Stephan
Stephan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of purplesoup

ASKER

Thanks for your comment.

The thing is - this is a huge app - I need to have something more specific to look for - in particular I don't understand why the main classes left in memory appear to have come from this callback to System.Web.Caching.CacheExpires - particularly as I say there is no specific caching code in the app itself, so it look as if this is something IIS is doing.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well the only code I could fine with timercallback was log4net - I can try turning it off. Anyone know how to do that? This is what I found and is what I'm going to try:

http://logging.apache.org/log4net/release/faq.html

How do I completely disable all logging at runtime?

Setting the Threshold on the Hierarchy to Level OFF will disable all logging from that Hierarchy. This can be done in the log4net configuration file by setting the "threshold" attribute on the log4net configuration element to "OFF". For example:

<log4net threshold="OFF" />
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial