locked
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.

    Cheers
    Thompson
    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)
    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/23ea6f24-4b44-4fa0-a275-a1b907e1afb6.mspx?mfr=true

    File Cache (IIS 6.0)
    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a0483502-c6da-486a-917a-586c463b7ed6.mspx?mfr=true

    IIS 6.0 Tuning for Performance
    http://www.eggheadcafe.com/articles/20050613.asp

    ASP.NET Performance Tips
    http://aspalliance.com/1533_ASPNET_Performance_Tips.7

    Take Care

    PL
    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.

    REgards
    azhar
    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)

    Cheers
    Thompson
    Thursday, October 15, 2009 11:54 AM