Forum Discussion

Zdenda's avatar
Zdenda
Icon for Cirrus rankCirrus
Jan 16, 2015

Caching in LTM - max 40 objects cached

Hello

  • version 11.5.1 Build 6.43.159 (Eng HotFix)
  • LTM used only, no WAM or AAM (no acceleration module)

Profile I use:

ltm profile web-acceleration webacceleration {
    app-service none
    cache-aging-rate 9
    cache-client-cache-control-mode all
    cache-insert-age-header enabled
    cache-max-age 3600
    cache-max-entries 10000
    cache-object-max-size 50000
    cache-object-min-size 500
        cache-size 75mb
        cache-uri-exclude none
        cache-uri-include { .* }
        cache-uri-include-override none
        cache-uri-pinned none
        metadata-cache-max-size 25mb
    }

iRule I use:

when HTTP_REQUEST {
   if {[HTTP::path] ends_with ".css" or
       [HTTP::path] ends_with ".js" or
       [HTTP::path] ends_with ".jpg" or
       [HTTP::path] ends_with ".png" or
       [HTTP::path] ends_with ".gif" }{
      CACHE::enable
   }
   else {
      CACHE::disable
   }
}

Can somebody know why I am getting max 40 objects cached? It does not matter what site I test, alway 40 objects max are cached and therefore new objects are replacing old objects:

show ltm profile ramcache webacceleration_default_profile | grep Total
Total records returned: 40

Thank you, Zdenek

7 Replies

  • I did not know I can use GUI to see cached objects, where is that option? And thanks for your post, but that is valid for 10.x version. We have 11.5.1. BTW, this runs on BIG-IP 4000 and when I tried "show sys tmm-info" I saw there only 4 tmm processes (0.0, 0.2, 0.4, 0.6).

     

  • Yeah, I know its out of date, but seems very much like your issue.

     

    You can view 'global' statistics for RAMCache via Statistics > Modules > Local Traffic > Profiles Summary > Web Acceleration

     

    You can view per Virtual Server statistics as follows: Local Traffic > Virtual Servers > Statistics > View... (chose a VS) > Then select the web acc. profile about half way down.

     

  • I am not sure if this is related only to output from show command. I think it is real, since when I do not see banner miages to be cached, then also "show ltm profile web-acceleration webacceleration_default_profile" shows less data to be cached.

     

    This is strange, does anybody have the same experience?

     

    • DamP_320463's avatar
      DamP_320463
      Icon for Nimbostratus rankNimbostratus

      Hi, anyone has fixed the issue with "show ltm profile web-acceleration webacceleration_default_profile" that shows less data to be cached ?

       

      Thanks

       

  • I recently came across this, and realised that it is not an issue. It is the command used which shows only the top 40 objects cached. Use this command instead "tmsh show ltm profile ramcache profilename max-response value" The "max-response" command will ensure the LTM list down more cache objects. When you put in 1000 as the value, it will list down the top 1000 cached objects.

     

    Hope this helps.