Imoplementing Caching in .Net RRS feed

  • Question

  • Hi,

    We have an asp.net web application which is not performing well.
    To improve its performance, we have implemented output cache and fragement caching.
    However performance is still not OK.
    As per a website http://www.galcho.com/Blog/PermaLink.aspx?guid=490f3c31-1815-40fc-a871-5d6899fa35e0,
    we can cache the static content in IIS by making changes in applicationHost.config and using appcmd.exe.
    However, i could not find config folder under %systemroot%\System32\inetsrv\config\ and also couldn't find appcmd.exe.
    I am using both IIS 5.1 and 6. Do we have to install anything extra or make some setting to get these files in IIS for enabling caching.

    Thursday, October 15, 2009 8:22 AM

All replies

  • Greetings,

    Some links are given below.

    Improving Scalability by Optimizing IIS 6.0 Caches (IIS 6.0)

    File Cache (IIS 6.0)

    IIS 6.0 Tuning for Performance

    ASP.NET Performance Tips

    Take Care

    Thursday, October 15, 2009 9:16 AM
  • Hi,

    If caching is not solvig the problem, its better to identify the root cause of the issue. Use Debug Diag and Windbg tools for getting the dumps of the application and analyzing the same.

    Thursday, October 15, 2009 9:23 AM
  • Thanks to both of you for prompt response.
    I have gone through the links provided by you and also fully understand the Windbg tools.
    But my issue it that i want to implement cache in IIS and I don't know how to do it operationally.
    If i want that a specific folder consisting of gif file should be cached at server, how can i do it operationally.In IIS7 it can be done as
    \Windows\system32\inetsrv\appcmd.exe set config "Default Web Site/images" -section:system.webServer/staticContent -clientCache.cacheControlMode:UseMaxAge
    But no idea how we can do this in IIS6(till now as IIS7 and windows 2008n server is still to be released.)
    Also if i want some items to be cached on client, some websites gives following link for that which unfortunately is not available before IIS7
    <add extension=".html" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />

    Can somebody please let me know how we are achieving and handling above issues/perfomance enhancers till now(IIS6)

    Thursday, October 15, 2009 11:54 AM