Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2004, 09:34 AM
Registered User
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Memory Leak on ASPnet_wp.exe

--------------------------------------------------------------------------------

Every three or four days I have the reboot my web server because the performance becomes so slow , nothing will function. I traced the problem to the ASPnet_wp.exe. Using the task manager, I can watch as memory is being added to this exe each time I open or refresh my web pages, but I never see memory released. Eventually there will be so much memory consumed, the web server will slow right down to nothing.

Is there a way to release this memory or to configure the server so that ASPnet_wp.exe does not consume so much? Is there something I have to do in my applications to manage this memory?
 
Old January 28th, 2004, 09:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can modify the memoryLimit of the asp worker process (aspnet_wp.exe). The default value is 80 or 80% of memory.

Look for the <processModel> section of the machine.config file.

 
Old January 28th, 2004, 09:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I forgot to mention that once it reaches the limit it automatically shuts itself down and a new worker process begins.

 
Old January 28th, 2004, 10:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

But the bigger issue is: what do you have that's causing this? I have found few to no memory problems with ASP.net when running native .net code. However, we encountered significant problems when we started using some pretty bulky old COM objects (with RCWs) in our .net code. This cause lots of memory leaks and eventual reboots.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 5th, 2004, 05:34 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We have a similar issue, but our configuration includes an Oracle 9i database and we are using the ODP.NET driver to connect from ASP.NET to Oracle.

We have determined through research that aspnet_wp.exe will maintain a thread for each user login until the IIS services is recycled. This quickly grows the aspnet_wp.exe to a very large size and maxes-out the memory avilable to Oracle.

For every connection that is opened, one must conclude the method with close() and dispose(), or else the thread stays in perpetuity.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak in a loop neilsands Java Basics 4 March 17th, 2010 05:59 AM
Looking for Memory Leak Advice Bill_Thompson Visual C++ 0 October 16th, 2007 05:42 PM
IE Memory Leak Jman82 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 July 6th, 2006 05:22 PM
Memory Leak in ADO Seeja Pro VB Databases 1 December 27th, 2004 07:28 PM
Think I have a memory leak, need advice grantmeans Classic ASP Databases 1 March 12th, 2004 03:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.