Q

How do I find a memory leak on an IIS server?

How do I find a memory leak on an IIS server? Is there any tool through which I can find a memory leak?
Well, start by using the Performance console, and monitor the processes to determine which process is constantly consuming more memory. You don't tell me anything about the applications you're running, but most people with memory leak problems on an IIS server are using ASP 3.0 applications. If that sounds like you, your problem is probably poorly written ASP code. Developers often forget to destroy objects after they create them, which creates a memory leak. Certainly, I've done it, and I spent many hours trying to track down the memory leaks in my own application. Your developer will need to go through the code in every ASP page and ensure that every object that is created is also destroyed. This is harder than it sounds, because many ASP pages will have complicated conditions and branches and create objects on-demand.

Ultimately, I improved the situation in my own application with hours of labor, but I couldn't find all the memory leaks. My final solution was to upgrade the application to ASP.NET, which handles destroying objects automatically and reliably.

Wish I had a better answer for you.
This was first published in May 2004

Dig Deeper on Microsoft Active Directory Tools and Troubleshooting

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

  • VDI assessment guide

    Wait! Don't implement VDI technology until you know your goals and needs. A VDI assessment should consider the benefits of a VDI ...

  • Guide to calculating ROI from VDI

    Calculating ROI from VDI requires a solid VDI cost analysis. Consider ROI calculation models, storage costs and more to determine...

  • Keep the cost of VDI storage under control

    Layering, persona management tools and flash arrays help keep virtual desktop users happy and VDI storage costs down.

Close