Am 29.07.2015 um 13:59 schrieb Bob:
I think it might be because of headers in "HTTP Header Manager" as
request was recorded via "HTTP(S) Test Script Recorder". But don't
know how to solve the problem. Any best practices sending HTTP headers
to manage concurrent pool and cache option?
You could have told us, which version of jmeter you are using.
If you are using a current nightly build, chances are, that you are
using a new feature of the cache manager. Your response headers show a
"Vary" header. Those requests will not be cached anymore.
If you are using a stable build, it might be that you stumbled upon a bug.
If I read the code correct, than there is missing an else statement with
a "return true;" in CacheManager#inCache(URL) for the if statement for
"entry == null".
But on the other hand, the javadocs for that method and the behaviour of
the method match, so it might be intended.
Regards,
Felix
On 29/07/15 13:44, Bob wrote:
Hi,
I'm using "HTTP Cache Manager" with default settings and when I run
test with 1 user, 2 iterations static files are not being cached.
When I increase iteration and run test, the caching behavior is the
same, it's downloading static files each time from server instead of
using from cache. Here is log from headers:
Thread Name: Thread Group 1-1
Sample Start: 2015-07-29 13:38:37 UZT
Load time: 5293
Connect Time: 0
Latency: 246
Size in bytes: 280405
Headers size in bytes: 11512
Body size in bytes: 268893
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK
Response headers:
HTTP/1.1 200 OK
Date: Wed, 29 Jul 2015 08:38:37 GMT
Server: Apache/2.4.10 (Debian)
X-Powered-By: PHP/5.6.9-0+deb8u1
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
Content-Length: 38259
Connection: Keep-Alive
Content-Encoding: gzip
HTTPSampleResult fields:
ContentType: text/html; charset=utf-8
DataEncoding: utf-8
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]