DOCUMENT:Q224190
TITLE   :ASP may Leak Memory in Response.CacheControl Method
PRODUCT :IIS
PROD/VER:4.0
OPER/SYS:WINDOWS NT
KEYWORD :prodiis4 

-------------------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Internet Information Server version 4.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

When calling the ASP Response method CacheControl from an ASP page, there is a
possibility that ASP will leak memory.

RESOLUTION
==========

A supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next Windows NT
service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services
to obtain the fix. For a complete list of Microsoft Product Support Services
phone numbers and information on support costs, please go to the following
address on the World Wide Web:

   http://support.microsoft.com/support/supportnet/default.asp

The English version of this fix should have the following file attributes or
later:

   Date      Time                 Size    File name     Platform
   -------------------------------------------------------------
   02/15/99  04:06p                28,224 admwprox.dll  (x86)
   02/15/99  04:08p               328,000 asp.dll       (x86)
   02/15/99  04:09p                33,872 clusiis4.dll  (x86)
   02/15/99  04:06p                43,456 coadmin.dll   (x86)
   02/15/99  04:10p                70,432 convlog.exe   (x86)
   02/15/99  04:08p                81,376 ftpsvc2.dll   (x86)
   02/15/99  04:07p                55,392 httpodbc.dll  (x86)
   02/15/99  04:09p                65,664 iisclex4.dll  (x86)
   02/15/99  04:06p                61,920 iislog.dll    (x86)
   02/15/99  04:06p                24,288 inetsloc.dll  (x86)
   02/15/99  04:07p               184,208 infocomm.dll  (x86)
   02/15/99  04:06p                47,936 isatq.dll     (x86)
   02/15/99  04:06p                29,520 iscomlog.dll  (x86)
   02/15/99  04:07p                11,248 iwrps.dll     (x86)
   02/15/99  04:09p                32,000 myinfo.dll    (x86)
   02/15/99  04:07p               227,424 w3svc.dll     (x86)
   02/15/99  04:07p                87,504 wam.dll       (x86)

   02/15/99  01:07p                50,448 admwprox.dll  (Alpha)
   02/15/99  01:09p               548,624 asp.dll       (Alpha)
   02/15/99  01:09p                53,520 clusiis4.dll  (Alpha)
   02/15/99  01:07p                77,072 coadmin.dll   (Alpha)
   02/15/99  01:10p               126,736 convlog.exe   (Alpha)
   02/15/99  01:08p               126,224 ftpsvc2.dll   (Alpha)
   02/15/99  01:08p                89,360 httpodbc.dll  (Alpha)
   02/15/99  01:09p               114,960 iisclex4.dll  (Alpha)
   02/15/99  01:07p               110,864 iislog.dll    (Alpha)
   02/15/99  01:07p                43,792 inetsloc.dll  (Alpha)
   02/15/99  01:07p               302,864 infocomm.dll  (Alpha)
   02/15/99  01:07p                82,704 isatq.dll     (Alpha)
   02/15/99  01:07p                45,840 iscomlog.dll  (Alpha)
   02/15/99  01:08p                16,656 iwrps.dll     (Alpha)
   02/15/99  01:09p                58,128 myinfo.dll    (Alpha)
   02/15/99  01:08p               381,712 w3svc.dll     (Alpha)
   02/15/99  01:08p               149,264 wam.dll       (Alpha)

This hotfix has been posted to the following Internet location as Fix575i.exe
(x86) and Fix575a.exe (Alpha):

   ftp://ftp.microsoft.com/bussys/IIS/iis-public/fixes/usa/ASP/asp-fix575/

NOTE: If this product was already installed on your computer when you purchased
it from the Original Equipment Manufacturer (OEM) and you need this fix, please
call the Pay Per Incident number listed on the above Web site. If you contact
Microsoft to obtain this fix, a fee may be charged. This fee is refundable if it
is determined that you only require the fix you requested. However, this fee is
non-refundable if you request additional technical support, if your no-charge
technical support period has expired, or if you are not eligible for standard
no-charge technical support.

For more information about eligibility for no-charge technical support, see the
following article in the Microsoft Knowledge Base:

   Q154871 Determining If You Are Eligible for No-Charge Technical Support

STATUS
======

Microsoft has confirmed this to be a problem in Internet Information Server
version 4.0.

MORE INFORMATION
================

To test whether or not your system has this problem you can monitor the Inetinfo
process in Performance Monitor. Set up Performance Monitor to monitor the
Inetinfo process using the counters for private bytes. Monitor the Inetinfo
process for a period of time to get a baseline reading. Then create an ASP file
with the following lines:

   Response.Expires = 0
   Response.Cachecontrol = "private"

After after adding these lines to the ASP file and then executing the ASP file on
the IIS server continously, the private bytes counter will rise accordingly.

Additional query words: 4.00 
============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.