dak1n1

Jmeter TestPlan -- 20-30k req/sec

Apr 21st, 2012
4,715
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="2.1">
  3.   <hashTree>
  4.     <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  5.       <stringProp name="TestPlan.comments">This example test plan demonstrates
  6. how Throughput Shaping Timer is used
  7. to limit Requests per Second
  8. to desired shape.</stringProp>
  9.       <boolProp name="TestPlan.functional_mode">false</boolProp>
  10.       <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  11.       <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  12.         <collectionProp name="Arguments.arguments"/>
  13.       </elementProp>
  14.       <stringProp name="TestPlan.user_define_classpath"></stringProp>
  15.     </TestPlan>
  16.     <hashTree>
  17.       <kg.apc.jmeter.threads.SteppingThreadGroup guiclass="kg.apc.jmeter.threads.SteppingThreadGroupGui" testclass="kg.apc.jmeter.threads.SteppingThreadGroup" testname="jp@gc - Stepping Thread Group" enabled="true">
  18.         <stringProp name="ThreadGroup.on_sample_error">stopthread</stringProp>
  19.         <stringProp name="ThreadGroup.num_threads">350</stringProp>
  20.         <stringProp name="Threads initial delay">0</stringProp>
  21.         <stringProp name="Start users count">10</stringProp>
  22.         <stringProp name="Start users period">10</stringProp>
  23.         <stringProp name="Stop users count">5</stringProp>
  24.         <stringProp name="Stop users period">1</stringProp>
  25.         <stringProp name="flighttime">60</stringProp>
  26.         <stringProp name="rampUp">5</stringProp>
  27.         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  28.           <boolProp name="LoopController.continue_forever">false</boolProp>
  29.           <intProp name="LoopController.loops">-1</intProp>
  30.         </elementProp>
  31.       </kg.apc.jmeter.threads.SteppingThreadGroup>
  32.       <hashTree>
  33.         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="single server - wiki page" enabled="false">
  34.           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  35.             <collectionProp name="Arguments.arguments"/>
  36.           </elementProp>
  37.           <stringProp name="HTTPSampler.domain">192.168.12.3</stringProp>
  38.           <stringProp name="HTTPSampler.port"></stringProp>
  39.           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  40.           <stringProp name="HTTPSampler.response_timeout"></stringProp>
  41.           <stringProp name="HTTPSampler.protocol"></stringProp>
  42.           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  43.           <stringProp name="HTTPSampler.path">/Vancouver.html</stringProp>
  44.           <stringProp name="HTTPSampler.method">GET</stringProp>
  45.           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  46.           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  47.           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  48.           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  49.           <boolProp name="HTTPSampler.monitor">false</boolProp>
  50.           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  51.         </HTTPSamplerProxy>
  52.         <hashTree/>
  53.         <kg.apc.jmeter.samplers.HTTPRawSampler guiclass="kg.apc.jmeter.samplers.HTTPRawSamplerGui" testclass="kg.apc.jmeter.samplers.HTTPRawSampler" testname="single server - HTTP Raw Request" enabled="true">
  54.           <stringProp name="hostname">192.168.12.3</stringProp>
  55.           <stringProp name="port">80</stringProp>
  56.           <boolProp name="keepalive">false</boolProp>
  57.           <stringProp name="timeout">0</stringProp>
  58.           <stringProp name="data">GET / HTTP/1.0&#xd;
  59. Host: localhost&#xd;
  60. Connection: close&#xd;
  61. &#xd;
  62. </stringProp>
  63.           <stringProp name="fileName"></stringProp>
  64.           <boolProp name="parse">true</boolProp>
  65.         </kg.apc.jmeter.samplers.HTTPRawSampler>
  66.         <hashTree>
  67.           <ResultCollector guiclass="kg.apc.jmeter.vizualizers.HitsPerSecondGui" testclass="ResultCollector" testname="jp@gc - Hits per Second" enabled="true">
  68.             <boolProp name="ResultCollector.error_logging">false</boolProp>
  69.             <objProp>
  70.               <name>saveConfig</name>
  71.               <value class="SampleSaveConfiguration">
  72.                 <time>true</time>
  73.                 <latency>true</latency>
  74.                 <timestamp>true</timestamp>
  75.                 <success>true</success>
  76.                 <label>true</label>
  77.                 <code>true</code>
  78.                 <message>true</message>
  79.                 <threadName>true</threadName>
  80.                 <dataType>true</dataType>
  81.                 <encoding>false</encoding>
  82.                 <assertions>true</assertions>
  83.                 <subresults>true</subresults>
  84.                 <responseData>false</responseData>
  85.                 <samplerData>false</samplerData>
  86.                 <xml>true</xml>
  87.                 <fieldNames>false</fieldNames>
  88.                 <responseHeaders>false</responseHeaders>
  89.                 <requestHeaders>false</requestHeaders>
  90.                 <responseDataOnError>false</responseDataOnError>
  91.                 <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  92.                 <assertionsResultsToSave>0</assertionsResultsToSave>
  93.                 <bytes>true</bytes>
  94.               </value>
  95.             </objProp>
  96.             <stringProp name="filename"></stringProp>
  97.             <longProp name="interval_grouping">1000</longProp>
  98.             <boolProp name="graph_aggregated">false</boolProp>
  99.           </ResultCollector>
  100.           <hashTree/>
  101.         </hashTree>
  102.         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="single server - find.html" enabled="false">
  103.           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  104.             <collectionProp name="Arguments.arguments"/>
  105.           </elementProp>
  106.           <stringProp name="HTTPSampler.domain">192.168.12.3</stringProp>
  107.           <stringProp name="HTTPSampler.port"></stringProp>
  108.           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  109.           <stringProp name="HTTPSampler.response_timeout"></stringProp>
  110.           <stringProp name="HTTPSampler.protocol"></stringProp>
  111.           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  112.           <stringProp name="HTTPSampler.path">/find.html</stringProp>
  113.           <stringProp name="HTTPSampler.method">GET</stringProp>
  114.           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  115.           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  116.           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  117.           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  118.           <boolProp name="HTTPSampler.monitor">false</boolProp>
  119.           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  120.         </HTTPSamplerProxy>
  121.         <hashTree/>
  122.         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="single server - sampletext" enabled="false">
  123.           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  124.             <collectionProp name="Arguments.arguments"/>
  125.           </elementProp>
  126.           <stringProp name="HTTPSampler.domain">192.168.12.3</stringProp>
  127.           <stringProp name="HTTPSampler.port"></stringProp>
  128.           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  129.           <stringProp name="HTTPSampler.response_timeout"></stringProp>
  130.           <stringProp name="HTTPSampler.protocol"></stringProp>
  131.           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  132.           <stringProp name="HTTPSampler.path">/sampletext.txt</stringProp>
  133.           <stringProp name="HTTPSampler.method">GET</stringProp>
  134.           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  135.           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  136.           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  137.           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  138.           <boolProp name="HTTPSampler.monitor">false</boolProp>
  139.           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  140.         </HTTPSamplerProxy>
  141.         <hashTree/>
  142.         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="cluster - sampletext" enabled="false">
  143.           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  144.             <collectionProp name="Arguments.arguments"/>
  145.           </elementProp>
  146.           <stringProp name="HTTPSampler.domain">192.168.12.10</stringProp>
  147.           <stringProp name="HTTPSampler.port"></stringProp>
  148.           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  149.           <stringProp name="HTTPSampler.response_timeout"></stringProp>
  150.           <stringProp name="HTTPSampler.protocol"></stringProp>
  151.           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  152.           <stringProp name="HTTPSampler.path">/sampletext.txt</stringProp>
  153.           <stringProp name="HTTPSampler.method">GET</stringProp>
  154.           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  155.           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  156.           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  157.           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  158.           <boolProp name="HTTPSampler.monitor">false</boolProp>
  159.           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  160.         </HTTPSamplerProxy>
  161.         <hashTree/>
  162.         <kg.apc.jmeter.samplers.HTTPRawSampler guiclass="kg.apc.jmeter.samplers.HTTPRawSamplerGui" testclass="kg.apc.jmeter.samplers.HTTPRawSampler" testname="cluster - HTTP Raw Request" enabled="false">
  163.           <stringProp name="hostname">192.168.12.10</stringProp>
  164.           <stringProp name="port">80</stringProp>
  165.           <boolProp name="keepalive">false</boolProp>
  166.           <stringProp name="timeout">0</stringProp>
  167.           <stringProp name="data">GET / HTTP/1.0&#xd;
  168. Host: localhost&#xd;
  169. Connection: close&#xd;
  170. &#xd;
  171. </stringProp>
  172.           <stringProp name="fileName"></stringProp>
  173.           <boolProp name="parse">true</boolProp>
  174.         </kg.apc.jmeter.samplers.HTTPRawSampler>
  175.         <hashTree/>
  176.         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="cluster - find.html" enabled="false">
  177.           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  178.             <collectionProp name="Arguments.arguments"/>
  179.           </elementProp>
  180.           <stringProp name="HTTPSampler.domain">192.168.12.10</stringProp>
  181.           <stringProp name="HTTPSampler.port"></stringProp>
  182.           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  183.           <stringProp name="HTTPSampler.response_timeout"></stringProp>
  184.           <stringProp name="HTTPSampler.protocol"></stringProp>
  185.           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  186.           <stringProp name="HTTPSampler.path">/find.html</stringProp>
  187.           <stringProp name="HTTPSampler.method">GET</stringProp>
  188.           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  189.           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  190.           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  191.           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  192.           <boolProp name="HTTPSampler.monitor">false</boolProp>
  193.           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  194.         </HTTPSamplerProxy>
  195.         <hashTree/>
  196.         <kg.apc.jmeter.samplers.DummySampler guiclass="kg.apc.jmeter.samplers.DummySamplerGui" testclass="kg.apc.jmeter.samplers.DummySampler" testname="jp@gc - Dummy Sampler" enabled="false">
  197.           <boolProp name="SUCCESFULL">true</boolProp>
  198.           <stringProp name="RESPONSE_CODE">200</stringProp>
  199.           <stringProp name="RESPONSE_MESSAGE">OK</stringProp>
  200.           <stringProp name="RESPONSE_DATA">Dummy Sampler used to simulate requests and responses
  201. without actual network activity. This helps debugging tests.</stringProp>
  202.           <stringProp name="RESPONSE_TIME">${__Random(1,10)}</stringProp>
  203.           <stringProp name="TestPlan.comments">Pretty fast response time gives us huge possible RPS rate</stringProp>
  204.           <boolProp name="WAITING">false</boolProp>
  205.           <stringProp name="REQUEST_DATA"></stringProp>
  206.           <stringProp name="LATENCY"></stringProp>
  207.         </kg.apc.jmeter.samplers.DummySampler>
  208.         <hashTree/>
  209.         <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
  210.           <boolProp name="ResultCollector.error_logging">false</boolProp>
  211.           <objProp>
  212.             <name>saveConfig</name>
  213.             <value class="SampleSaveConfiguration">
  214.               <time>true</time>
  215.               <latency>true</latency>
  216.               <timestamp>true</timestamp>
  217.               <success>true</success>
  218.               <label>true</label>
  219.               <code>true</code>
  220.               <message>true</message>
  221.               <threadName>true</threadName>
  222.               <dataType>true</dataType>
  223.               <encoding>false</encoding>
  224.               <assertions>true</assertions>
  225.               <subresults>true</subresults>
  226.               <responseData>false</responseData>
  227.               <samplerData>false</samplerData>
  228.               <xml>true</xml>
  229.               <fieldNames>false</fieldNames>
  230.               <responseHeaders>false</responseHeaders>
  231.               <requestHeaders>false</requestHeaders>
  232.               <responseDataOnError>false</responseDataOnError>
  233.               <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  234.               <assertionsResultsToSave>0</assertionsResultsToSave>
  235.               <bytes>true</bytes>
  236.             </value>
  237.           </objProp>
  238.           <stringProp name="filename"></stringProp>
  239.         </ResultCollector>
  240.         <hashTree/>
  241.         <ResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="ResultCollector" testname="jp@gc - Transactions per Second" enabled="true">
  242.           <boolProp name="ResultCollector.error_logging">false</boolProp>
  243.           <objProp>
  244.             <name>saveConfig</name>
  245.             <value class="SampleSaveConfiguration">
  246.               <time>true</time>
  247.               <latency>true</latency>
  248.               <timestamp>true</timestamp>
  249.               <success>true</success>
  250.               <label>true</label>
  251.               <code>true</code>
  252.               <message>true</message>
  253.               <threadName>true</threadName>
  254.               <dataType>true</dataType>
  255.               <encoding>false</encoding>
  256.               <assertions>true</assertions>
  257.               <subresults>true</subresults>
  258.               <responseData>false</responseData>
  259.               <samplerData>false</samplerData>
  260.               <xml>true</xml>
  261.               <fieldNames>false</fieldNames>
  262.               <responseHeaders>false</responseHeaders>
  263.               <requestHeaders>false</requestHeaders>
  264.               <responseDataOnError>false</responseDataOnError>
  265.               <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  266.               <assertionsResultsToSave>0</assertionsResultsToSave>
  267.               <bytes>true</bytes>
  268.               <threadCounts>true</threadCounts>
  269.             </value>
  270.           </objProp>
  271.           <stringProp name="filename"></stringProp>
  272.           <longProp name="interval_grouping">1000</longProp>
  273.           <boolProp name="graph_aggregated">false</boolProp>
  274.           <stringProp name="TestPlan.comments">Run the test and you will see how transaction rate follows Timer schedule.</stringProp>
  275.         </ResultCollector>
  276.         <hashTree/>
  277.       </hashTree>
  278.     </hashTree>
  279.   </hashTree>
  280. </jmeterTestPlan>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×