Hi

Have anyone experienced that IIS leaks a lot of memory after sp4 was
installed?

We have a web server, which have run for about 8 month now. We regularly
update it with the latest service packs.
Last week we upgraded it to sp4, and after that the memory-usage has
exploded.
Normally the machine uses about 300-400 MB ram during the day, now it
suddenly begins to grow, and it doesn't stop before it reaches the limit
(2gb) and we have to restart IIS. We have to do that approx. 2-3 times a day
now.

I can also see that the number of handles locked by dllhost.exe is growing
wildly.

Any ideas?

Jørn Esbensen.

Re: Win2000 sp4 and enormous memory-leaks by Jørn

Jørn
Mon Jul 21 01:37:11 CDT 2003

Yes we are using homemade VB6-dll's for the majority of the functionality.
And its dllhost.exe not inetinfo.exe that is growing.

Since I wrote the post we have looked through the code and explicitly set
all objects to nothing in the end of the functions.
And it actually helped!!!

This was quite a surprise because it has never before been required, and I
thought that VB automatically cleaned up the memory when the function gets
out of scope.

But it seems to be from now on. So from now on its back to good old c++
practice. Release everything you create.

Jørn Esbensen

"Tim Coffey" <timcofonline@microsoft.com> wrote in message
news:%23RBcH%23zTDHA.1132@cpmsftngxa06.phx.gbl...
> No reported memory leaks. If it were in IIS, we would see inetinfo.exe
growing out of control; It could be possible that a security or
> functionality issue was fixed, and therefore exposing an issue with any
custom objects, etc. If you have any objects written in VB or
> C++, see if you can run them within a COM+ package, and then see if that
particular process starts growing. Not saying there is a
> problem with your code, but this can help us isolate it. May be a runtime
issue.
>
> Thank you. I hope this information is helpful.
>
> Tim Coffey [MSFT]
>
> This posting is provided "AS IS" with no warranties, and confers no
rights. You assume all risk for your use. © 2001 Microsoft
> Corporation. All rights reserved.
> --------------------



Re: Win2000 sp4 and enormous memory-leaks by timcofonline

timcofonline
Mon Jul 21 05:54:38 CDT 2003

Setting = nothing is a must. I am quite surprised you did not see the leak before this; that is usually the biggest cause of memory leaks
along with the same from an ASP page -> some type of database.

set conn = nothing

That is a definite must as well. Thanks for the update.

Thank you. I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided ?AS IS? with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft
Corporation. All rights reserved.
--------------------
| From: "Jørn Esbensen" <jes@kl.dk>
| References: <OW58$IuRDHA.1720@TK2MSFTNGP10.phx.gbl> <#RBcH#zTDHA.1132@cpmsftngxa06.phx.gbl>
| Subject: Re: Win2000 sp4 and enormous memory-leaks
| Date: Mon, 21 Jul 2003 08:37:11 +0200
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u8MIJK1TDHA.2148@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.inetserver.iis
| NNTP-Posting-Host: 212.130.14.131
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:267372
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| Yes we are using homemade VB6-dll's for the majority of the functionality.
| And its dllhost.exe not inetinfo.exe that is growing.
|
| Since I wrote the post we have looked through the code and explicitly set
| all objects to nothing in the end of the functions.
| And it actually helped!!!
|
| This was quite a surprise because it has never before been required, and I
| thought that VB automatically cleaned up the memory when the function gets
| out of scope.
|
| But it seems to be from now on. So from now on its back to good old c++
| practice. Release everything you create.
|
| Jørn Esbensen
|
| "Tim Coffey" <timcofonline@microsoft.com> wrote in message
| news:%23RBcH%23zTDHA.1132@cpmsftngxa06.phx.gbl...
| > No reported memory leaks. If it were in IIS, we would see inetinfo.exe
| growing out of control; It could be possible that a security or
| > functionality issue was fixed, and therefore exposing an issue with any
| custom objects, etc. If you have any objects written in VB or
| > C++, see if you can run them within a COM+ package, and then see if that
| particular process starts growing. Not saying there is a
| > problem with your code, but this can help us isolate it. May be a runtime
| issue.
| >
| > Thank you. I hope this information is helpful.
| >
| > Tim Coffey [MSFT]
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights. You assume all risk for your use. © 2001 Microsoft
| > Corporation. All rights reserved.
| > --------------------
|
|
|