
12-03-2003, 07:31 PM
|
|
New Member
|
|
Join Date: Dec 2003
Posts: 3
|
|
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
|

12-03-2003, 07:37 PM
|
|
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.
|

12-04-2003, 05:17 AM
|
|
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
|

12-04-2003, 05:51 AM
|
|
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.
|

12-04-2003, 12:41 PM
|
|
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
|

12-05-2003, 01:58 PM
|
|
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
|

12-05-2003, 02:29 PM
|
|
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
|

12-05-2003, 05:18 PM
|
|
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.
|

01-16-2005, 04:29 AM
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|