hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : IIS Memory Leak
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

IIS Memory Leak

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2003, 07:31 PM
jack2004 jack2004 is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Angry

IIS Memory Leak


Hi,
I run several sites on a dedicated server using Win2k & IIS. The sites use classic ASP and a few COM components called from ASP. My problem is that inetinfo.exe grows and grows in size (above 200MB) until it gets so big that it IIS freezes and I have to reboot my server to get it to work. These days I go through this reboot cycle at least once a week.

I installed a program called CacheBoost (www .systweak. com/ cacheboost/) yesterday and it seamed to work pretty well (getting inetinfo down from about 80MB to it 50MB, and setting it to do this optimization every hour), but now inetinfo has grown from it initial 50MB to 90MB and refuses to get any smaller.

Does anyone know what causes this and how I can fix it?

-Jack

Reply With Quote


Sponsored Links
  #2  
Old 12-03-2003, 07:37 PM
protecweb protecweb is offline
Web Hosting Master
 
Join Date: Nov 2002
Posts: 578
Generally it is due to bad code. You need to track down which site is causing the problem and then go through their ASP code to see if you can spot anything slack. There are several tools to help you with this but you might want to take a look at Filemon > http://www.sysinternals.com/ntw2k/source/filemon.shtml
This will give you more of an idea as to what specific files or .dlls are causing issues.
Other peeps here will prbably give you some other ideas as there are many tricks to use to find who the resource hog is.

__________________
Regards, Sam. www.protecweb.co.uk
Windows Shared and Reseller Hosting with ASP.Net, MS SQL 2008, PHP, MySQL5 and more.
Providing quality web hosting and support since 2001.

Reply With Quote
  #3  
Old 12-04-2003, 05:17 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
Sounds like a process that isn't being terminated properly. You can use system monitor to track what's doing what (but I'm sure there is a dedicated utitlity for IIS that does this).

Just to be safe, have you applied all the (now very frequent) patches for Windows?

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
Sponsored Links
  #4  
Old 12-04-2003, 05:51 AM
json json is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Denmark
Posts: 99
I have more than 5 years of experience building big solutions with COM on IIS (4, 5 and 6), and everytime we have had leak issue, it has been bad code.

Remember to close objects (if a close method exists), and set the object to nothing.. close connection to databases, don't use the application or session object to store other objects in, etc etc...

regards,
J.

Reply With Quote
  #5  
Old 12-04-2003, 12:41 PM
jack2004 jack2004 is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Thanks people,
I have coded all the ASP myself and I am usually good about closing everything, but I am sure that I have forgot to do it in a few places so I will go through all my code and check that everything is being closed.

Thanks again!


-Jack

Reply With Quote
  #6  
Old 12-05-2003, 01:58 PM
edomaz edomaz is offline
Newbie
 
Join Date: Nov 2003
Posts: 17
If you can't fiqure out why your memory is leaking even after looking at the code you could setup the IIS Recycler if you have Windows 2000. Or if you have Windows 2003 you can simply setup Application Pool recycling

Reply With Quote
  #7  
Old 12-05-2003, 02:29 PM
jack2004 jack2004 is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Thanks for the tip about IIS Recycler. Have read all the documentation on MS's site, but I still don't quite understand what it does.

Does it:

a) Restart IIS with downtime for my websites?
b) Clean IIS without downtime for my websites?

Thanks!

-Jack

Reply With Quote
  #8  
Old 12-05-2003, 05:18 PM
sunpost sunpost is offline
WHT Addict
 
Join Date: Dec 2002
Posts: 124
it looks like IIS5Recycle will create downtime...you determine when that will occur by time, requests, memory, etc.


if it is not too many sites consider using High (Isolated) level for each web site...
http://msdn.microsoft.com/library/de...rver112299.asp

or if you have an idea of which site might contain the offending code, just switch that one to high. it will create a DDLHOST.EXE, then watch the process for memory leaks. this can help you discover which site is causing the problem.

i keep all my well behaved sites in the medium(pooled) setting and none in the low.

Reply With Quote
  #9  
Old 12-06-2003, 01:27 AM
nkad nkad is offline
WHT Addict
 
Join Date: Mar 2003
Posts: 110
This may be of some help: http://www.15seconds.com/issue/020206.htm It basically talks about IIS optimization and performance w/ components

Reply With Quote
  #10  
Old 01-16-2005, 04:29 AM
monware monware is offline
Newbie
 
Join Date: Dec 2004
Posts: 17
I think it is time to switch to a Win2003 Server. ISS 6.0 is more secure and reliable.

__________________
http://monware.com
Windows Server and IIS Monitoring Tools

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
DigitalOcean Rolls Out Fix for Virtual Server Data Leak Web Hosting News 2013-04-03 10:48:56
Peak Hosting Launches Dell R815 Dedicated Server for Large Scale Memory Requirements Web Hosting News 2012-07-13 14:31:31
Microsoft Active Protection Program Leak Leads to Publication of RDP Exploit Code Web Hosting News 2012-03-19 07:05:13
Web Host InMotion Upgrades VPS with More Memory, Bandwidth Web Hosting News 2012-03-08 14:15:08
Web Host Amazon Web Services Launches ElastiCache Service Web Hosting News 2011-08-23 17:53:00


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?