简体   繁体   English

Jmeter:活动线程数

[英]Jmeter : Number of active threads

  • I am using jmeter in elemetery freya (14.04) 我正在elemetery freya(14.04)中使用jmeter
  • I have a jmeter test plan with view results tree 我有一个带有视图结果树的jmeter测试计划
  • I am trying to generate a csv file in view results tree including the number of active threads field. 我正在尝试在包含活动线程数字段的视图结果树中生成一个csv文件。
  • It appears to me that the detail is being entered in the result.csv file, but the values representing this attribute has no field name, and hence that detail cannot be used in a graph which I want to create from the result.csv 在我看来,详细信息已输入到result.csv文件中,但是表示该属性的值没有字段名称,因此该详细信息无法在我要从result.csv创建的图中使用

  • I have changed JMETER-INSTALL-DIR/bin/jmeter.properties according to https://jmeter-plugins.org/wiki/PluginInstall/#Configure-JMeter 我已经根据https://jmeter-plugins.org/wiki/PluginInstall/#Configure-JMeter更改了JMETER-INSTALL-DIR / bin / jmeter.properties

  • How can I get a result.csv file with a suitable fieldname like "active-threads" 如何获取具有合适字段名(例如“ active-threads”)的result.csv文件

  1. Don't change anything in jmeter.properties file, upgrade to new JMeter version will discard your changes. 请勿更改jmeter.properties文件中的任何内容,升级到新的JMeter版本将放弃您的更改。 Use user.properties file instead 改用user.properties文件
  2. The in order to add column names to CSV file add the following property to user.properties file: 为了将列名添加到CSV文件,将以下属性添加到user.properties文件:

     jmeter.save.saveservice.print_field_names=true 

Assuming good configuration you should be seeing grpThreads and allThreads columns along with the values. 假设配置良好,您应该会看到grpThreadsallThreads列以及值。

See Apache JMeter Properties Customization Guide for more information on JMeter properties and ways of working with them 有关JMeter属性及其使用方式的更多信息,请参见Apache JMeter属性自定义指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM