Bug 59885 - Optimize css parsing for embedded resources download by introducing a cache
Summary: Optimize css parsing for embedded resources download by introducing a cache
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 3.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-19 12:47 UTC by benoit.wiart
Modified: 2016-07-31 18:50 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.wiart 2016-07-19 12:47:42 UTC
the css parser is essential to test real world applications with
embedded resources download.
But it's heavy on cpu and memory allocations.

this commit add a lru cache which saves the url extracted from the css
file.
the key of the cache is the md5 of the css file.

the cache is not enabled by default (but should probably be)
To activate it, a value > 0 must be set for the key
'css.parser.cache.size' in the jmeter config file
Comment 1 benoit.wiart 2016-07-20 08:35:25 UTC
PR: https://github.com/apache/jmeter/pull/219
Comment 2 Philippe Mouawad 2016-07-31 18:50:27 UTC
Date: Sun Jul 31 18:50:01 2016
New Revision: 1754678

URL: http://svn.apache.org/viewvc?rev=1754678&view=rev
Log:
Bug 59885 - Optimize css parsing for embedded resources download by introducing a cache
Based on PR 219 contributed by Benoit Wiart (b.wiart at ubik-ingenierie.com)
This closes #219 on github.
Bugzilla Id: 59885

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/CssParser.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:38:04 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4027