Last active
December 22, 2017 07:50
-
-
Save yangl/ac16852c2af4f4a873ec5d0de629919a to your computer and use it in GitHub Desktop.
jmeter 压测netty例子 参考http://www.voidcn.com/article/p-hadgjirb-bog.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jmeterTestPlan version="1.2" properties="3.2" jmeter="3.3 r1808647"> | |
| <hashTree> | |
| <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Netty压测" enabled="true"> | |
| <stringProp name="TestPlan.comments"></stringProp> | |
| <boolProp name="TestPlan.functional_mode">false</boolProp> | |
| <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
| <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> | |
| <collectionProp name="Arguments.arguments"/> | |
| </elementProp> | |
| <stringProp name="TestPlan.user_define_classpath"></stringProp> | |
| </TestPlan> | |
| <hashTree> | |
| <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="线程组" enabled="true"> | |
| <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> | |
| <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> | |
| <boolProp name="LoopController.continue_forever">false</boolProp> | |
| <intProp name="LoopController.loops">-1</intProp> | |
| </elementProp> | |
| <stringProp name="ThreadGroup.num_threads">5000</stringProp> | |
| <stringProp name="ThreadGroup.ramp_time">100</stringProp> | |
| <longProp name="ThreadGroup.start_time">1513921513000</longProp> | |
| <longProp name="ThreadGroup.end_time">1513921513000</longProp> | |
| <boolProp name="ThreadGroup.scheduler">true</boolProp> | |
| <stringProp name="ThreadGroup.duration">600</stringProp> | |
| <stringProp name="ThreadGroup.delay"></stringProp> | |
| </ThreadGroup> | |
| <hashTree> | |
| <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="固定定时器" enabled="true"> | |
| <stringProp name="ConstantTimer.delay">1000</stringProp> | |
| </ConstantTimer> | |
| <hashTree/> | |
| <TCPSampler guiclass="TCPSamplerGui" testclass="TCPSampler" testname="TCP取样器" enabled="true"> | |
| <stringProp name="TCPSampler.classname">BinaryTCPClientImpl</stringProp> | |
| <stringProp name="TCPSampler.server">10.202.70.25</stringProp> | |
| <boolProp name="TCPSampler.reUseConnection">true</boolProp> | |
| <stringProp name="TCPSampler.port">8000</stringProp> | |
| <boolProp name="TCPSampler.nodelay">false</boolProp> | |
| <stringProp name="TCPSampler.timeout">100</stringProp> | |
| <stringProp name="TCPSampler.ctimeout">100</stringProp> | |
| <stringProp name="TCPSampler.request">ABCD00F0201712111652120000002E7B2264617461223A7B226172677573537461747573223A317D2C22636F6465223A3230302C226D7367223A22227DD3FF</stringProp> | |
| <boolProp name="TCPSampler.closeConnection">false</boolProp> | |
| <stringProp name="TCPSampler.EolByte">-1</stringProp> | |
| <stringProp name="ConfigTestElement.username"></stringProp> | |
| <stringProp name="ConfigTestElement.password"></stringProp> | |
| </TCPSampler> | |
| <hashTree> | |
| <SizeAssertion guiclass="SizeAssertionGui" testclass="SizeAssertion" testname="Size Assertion" enabled="true"> | |
| <stringProp name="Assertion.test_field">SizeAssertion.response_network_size</stringProp> | |
| <stringProp name="SizeAssertion.size">2</stringProp> | |
| <intProp name="SizeAssertion.operator">3</intProp> | |
| </SizeAssertion> | |
| <hashTree/> | |
| </hashTree> | |
| <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="用表格察看结果" enabled="true"> | |
| <boolProp name="ResultCollector.error_logging">false</boolProp> | |
| <objProp> | |
| <name>saveConfig</name> | |
| <value class="SampleSaveConfiguration"> | |
| <time>true</time> | |
| <latency>true</latency> | |
| <timestamp>true</timestamp> | |
| <success>true</success> | |
| <label>true</label> | |
| <code>true</code> | |
| <message>true</message> | |
| <threadName>true</threadName> | |
| <dataType>true</dataType> | |
| <encoding>false</encoding> | |
| <assertions>true</assertions> | |
| <subresults>true</subresults> | |
| <responseData>false</responseData> | |
| <samplerData>false</samplerData> | |
| <xml>false</xml> | |
| <fieldNames>true</fieldNames> | |
| <responseHeaders>false</responseHeaders> | |
| <requestHeaders>false</requestHeaders> | |
| <responseDataOnError>false</responseDataOnError> | |
| <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> | |
| <assertionsResultsToSave>0</assertionsResultsToSave> | |
| <bytes>true</bytes> | |
| <sentBytes>true</sentBytes> | |
| <threadCounts>true</threadCounts> | |
| <idleTime>true</idleTime> | |
| <connectTime>true</connectTime> | |
| </value> | |
| </objProp> | |
| <stringProp name="filename"></stringProp> | |
| </ResultCollector> | |
| <hashTree/> | |
| <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="聚合报告" enabled="true"> | |
| <boolProp name="ResultCollector.error_logging">false</boolProp> | |
| <objProp> | |
| <name>saveConfig</name> | |
| <value class="SampleSaveConfiguration"> | |
| <time>true</time> | |
| <latency>true</latency> | |
| <timestamp>true</timestamp> | |
| <success>true</success> | |
| <label>true</label> | |
| <code>true</code> | |
| <message>true</message> | |
| <threadName>true</threadName> | |
| <dataType>true</dataType> | |
| <encoding>false</encoding> | |
| <assertions>true</assertions> | |
| <subresults>true</subresults> | |
| <responseData>false</responseData> | |
| <samplerData>false</samplerData> | |
| <xml>false</xml> | |
| <fieldNames>true</fieldNames> | |
| <responseHeaders>false</responseHeaders> | |
| <requestHeaders>false</requestHeaders> | |
| <responseDataOnError>false</responseDataOnError> | |
| <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> | |
| <assertionsResultsToSave>0</assertionsResultsToSave> | |
| <bytes>true</bytes> | |
| <sentBytes>true</sentBytes> | |
| <threadCounts>true</threadCounts> | |
| <idleTime>true</idleTime> | |
| <connectTime>true</connectTime> | |
| </value> | |
| </objProp> | |
| <stringProp name="filename"></stringProp> | |
| </ResultCollector> | |
| <hashTree/> | |
| <ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="图形结果" enabled="true"> | |
| <boolProp name="ResultCollector.error_logging">false</boolProp> | |
| <objProp> | |
| <name>saveConfig</name> | |
| <value class="SampleSaveConfiguration"> | |
| <time>true</time> | |
| <latency>true</latency> | |
| <timestamp>true</timestamp> | |
| <success>true</success> | |
| <label>true</label> | |
| <code>true</code> | |
| <message>true</message> | |
| <threadName>true</threadName> | |
| <dataType>true</dataType> | |
| <encoding>false</encoding> | |
| <assertions>true</assertions> | |
| <subresults>true</subresults> | |
| <responseData>false</responseData> | |
| <samplerData>false</samplerData> | |
| <xml>false</xml> | |
| <fieldNames>true</fieldNames> | |
| <responseHeaders>false</responseHeaders> | |
| <requestHeaders>false</requestHeaders> | |
| <responseDataOnError>false</responseDataOnError> | |
| <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> | |
| <assertionsResultsToSave>0</assertionsResultsToSave> | |
| <bytes>true</bytes> | |
| <sentBytes>true</sentBytes> | |
| <threadCounts>true</threadCounts> | |
| <idleTime>true</idleTime> | |
| <connectTime>true</connectTime> | |
| </value> | |
| </objProp> | |
| <stringProp name="filename"></stringProp> | |
| </ResultCollector> | |
| <hashTree/> | |
| <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true"> | |
| <boolProp name="ResultCollector.error_logging">false</boolProp> | |
| <objProp> | |
| <name>saveConfig</name> | |
| <value class="SampleSaveConfiguration"> | |
| <time>true</time> | |
| <latency>true</latency> | |
| <timestamp>true</timestamp> | |
| <success>true</success> | |
| <label>true</label> | |
| <code>true</code> | |
| <message>true</message> | |
| <threadName>true</threadName> | |
| <dataType>true</dataType> | |
| <encoding>false</encoding> | |
| <assertions>true</assertions> | |
| <subresults>true</subresults> | |
| <responseData>false</responseData> | |
| <samplerData>false</samplerData> | |
| <xml>false</xml> | |
| <fieldNames>true</fieldNames> | |
| <responseHeaders>false</responseHeaders> | |
| <requestHeaders>false</requestHeaders> | |
| <responseDataOnError>false</responseDataOnError> | |
| <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> | |
| <assertionsResultsToSave>0</assertionsResultsToSave> | |
| <bytes>true</bytes> | |
| <sentBytes>true</sentBytes> | |
| <threadCounts>true</threadCounts> | |
| <idleTime>true</idleTime> | |
| <connectTime>true</connectTime> | |
| </value> | |
| </objProp> | |
| <stringProp name="filename"></stringProp> | |
| </ResultCollector> | |
| <hashTree/> | |
| </hashTree> | |
| </hashTree> | |
| <WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="工作台" enabled="true"> | |
| <boolProp name="WorkBench.save">true</boolProp> | |
| </WorkBench> | |
| <hashTree/> | |
| </hashTree> | |
| </jmeterTestPlan> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment