Forum Discussion
troubles with cache dump
I want see what is in the cache.
So the following link does it but I remark strange behavior with it:
http://devcentral.f5.com/wiki/defau...trace.html
Independently what is configured in my http profiles the irule works sometimes and sometimes not?
When I execute the command:
b http show | grep "RAM cache (entries"
| RAM cache (entries, size, evict) = (15, 53974, 0)
I see hat there are 15 objects are in the ramcache.
But if I execute the iRule I just get the following:
CACHE DUMP
Cache size - 20321
Cache count- 8
Entity - Pos (0008) Local Hits (00000/00000) Remote Hits (00000/00000) Served (027) Age (027) Score (0000) Key - 'www.mydom.net/imgweb/2/V5/misc/arrow_white.gif'
Entity - Pos (0007) Local Hits (00000/00000) Remote Hits (00000/00000) Served (029) Age (029) Score (0000) Key - 'www.mydom.net/imgweb/2/v4/dyn/btn/Fondue-Raclette-Set_de.jpg'
Entity - Pos (0006) Local Hits (00000/00000) Remote Hits (00000/00000) Served (029) Age (029) Score (0000) Key - 'www.mydom.net/pages/dynhp/de/hppic_2/3.htmlgzip,deflate,sdch'
Entity - Pos (0005) Local Hits (00001/00000) Remote Hits (00001/00000) Served (000) Age (981) Score (0004) Key - 'www.mydom.net/favicon.ico'
Entity - Pos (0004) Local Hits (00000/00000) Remote Hits (00000/00000) Served (1081) Age (1081) Score (0000) Key - 'www.mydom.net/pages/dynhp/de/btn/2.htmlgzip,deflate,sdch'
Entity - Pos (0003) Local Hits (00000/00000) Remote Hits (00000/00000) Served (1081) Age (1081) Score (0000) Key - 'www.mydom.net/pages/dynhp/de/btn_3/3.htmlgzip,deflate,sdch'
Entity - Pos (0002) Local Hits (00003/00000) Remote Hits (00003/00000) Served (1129) Age (1133) Score (0000) Key - 'www.mydom.net/ImgWeb/2/V3/mail/channels_de_ms.gif'
Entity - Pos (0001) Local Hits (00000/00001) Remote Hits (00000/00001) Served (1133) Age (1133) Score (0000) Key - 'www.mydom.net/ImgWeb/2/V3/mail/logo.gif'
Why is that as different as I see???
thx for any help
bb
- hooleylistCirrostratusHi Bigbrother,
- Andrea_ArquintNimbostratusHi hoolio
- hooleylistCirrostratusHrm... can you post the iRule you're testing with?
- Andrea_ArquintNimbostratus
Hi hoolio
Here is the rule:
when RULE_INIT {
set static::cache ""
}
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/aracache" } {
HTTP::respond 200 content "CACHE DUMP\r\n\r\n$static::cache\r\n\r\n"
}
}
when CACHE_RESPONSE {
CACHE::header insert X-Via F5-LB
set static::cache [CACHE::trace]
}
This does respond something but if I clear the cache then it still respond the same entries even if they are cleard???
Thanx for your help
bb
- hooleylistCirrostratusHi BB,
when HTTP_REQUEST { Check if request is to our special cache dump URI if { [HTTP::uri] ends_with "/aracache" } { Force this request to be answered from cache CACHE::enable set cache_trace 1 } else { set cache_trace 0 } } when CACHE_RESPONSE { Check if request was for a cache trace if { $cache_trace }{ HTTP::respond content "Cache trace output:\r\n\r\n[CACHE::trace]\r\n\r\n" } }
- Andrea_ArquintNimbostratusHi Aaron
I tested your iRule like I did before with /aracache but I got a 404 response?
Thanx for your help
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com