Created attachment 31907 [details] DNS Cache Manager sources As was proposed by Milamber, creating separate issue for discussion in DEV-list: http://jmeter.512774.n5.nabble.com/DNS-Cache-Manager-improvement-for-testing-CDN-td5720797.html This config element help to get more realistic load while testing web-applications, which're using CDN. Attaching two files: dns-cache-manager.patch and dns-cache-manager.png(an icon for component_reference.xml)
Created attachment 31908 [details] icon for component_reference.xml
Created attachment 31911 [details] Update patch v2 Fix some alphabetical orders Add some missing I18N strings Add French translation Formatting the code Some issues remain (I think) between DNSCacheManager and DNSCachePanel on configure/modifyTestElement methods. (no time tonight to fix them) Why use a PoolingClientConnectionManager in HTTPHC4Impl.java? BasicClientConnectionManager don't sufficient? The JMeter(httpclient) default client connection manger is change with Pooling? + PoolingClientConnectionManager poolingClientConnectionManager= + new PoolingClientConnectionManager(SchemeRegistryFactory.createDefault(),resolver); + Screenshot must be refresh.
Created attachment 31912 [details] http-cache-manager.png
(In reply to Milamber from comment #2) > Some issues remain (I think) between DNSCacheManager and DNSCachePanel on > configure/modifyTestElement methods. (no time tonight to fix them) Can you show logs/description? > Why use a PoolingClientConnectionManager in HTTPHC4Impl.java? > BasicClientConnectionManager don't sufficient? The JMeter(httpclient) > default client connection manger is change with Pooling? > > + PoolingClientConnectionManager poolingClientConnectionManager= > + new > PoolingClientConnectionManager(SchemeRegistryFactory.createDefault(), > resolver); > + PoolingClientConnectionManager is extended BasicClientConnectionManager, it has constructor, which allows to pass instance of DnsResolver to httpclient to get flexibility. BasicClientConnectionManager does not allow to do that. PoolingClientConnectionManager.java public PoolingClientConnectionManager(final SchemeRegistry schreg,final DnsResolver dnsResolver) { this(schreg, -1, TimeUnit.MILLISECONDS,dnsResolver); } Added screenshot
Created attachment 31917 [details] Final patch before commit
Created attachment 31918 [details] New screenshot
In the final patch, I have fixed the usage of radio buttons to allow to restore the good config when you load a jmx file with a DNS cache manager. Update docs Thanks for your initial work. Please test the nightly build to see if all is work fine with a CDN load test. Milamber == URL: http://svn.apache.org/r1618048 Log: New configuration element: DNS Cache Manager to improve the testing of CDN Bugzilla Id: 56841 Added: jmeter/trunk/docs/images/screenshots/dns-cache-manager.png (with props) jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java (with props) jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/DNSCachePanel.java (with props) jmeter/trunk/xdocs/images/screenshots/dns-cache-manager.png (with props) Modified: jmeter/trunk/bin/saveservice.properties jmeter/trunk/build.properties jmeter/trunk/build.xml jmeter/trunk/eclipse.classpath jmeter/trunk/res/maven/ApacheJMeter_parent.pom jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java jmeter/trunk/xdocs/changes.xml jmeter/trunk/xdocs/usermanual/component_reference.xml URL: http://svn.apache.org/r1618049 Log: Add dnsjava to ignore Bugzilla Id: 56841 Modified: jmeter/trunk/lib/ (props changed)
URL: http://svn.apache.org/r1618067 Log: synchronize the revision with saveservice.properties Bugzilla Id: 56841 Modified: jmeter/trunk/src/core/org/apache/jmeter/save/SaveService.java
I've have faced with NotSerializableException while running distributed tests with DNS Cache Manager. Attaching a patch for it.
Created attachment 32033 [details] NotSerializableException
Fixed. Thanks. URL: http://svn.apache.org/r1626548 Log: Fix a NotSerializableException issue with distributed tests Bugzilla Id: 56841 Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java === URL: http://svn.apache.org/r1626549 Log: Add dnsjava into binary packages Bugzilla Id: 56841 Modified: jmeter/trunk/build.xml
*** Bug 43730 has been marked as a duplicate of this bug. ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3414