Jmeter Environment

Official Link

https://jmeter.apache.org/

Q&A

Issue-1.Out of memory issue

On Windows (32bit)
  • Only support max 1.5g memory.
On Windows (64bit)
  • Manual Step:
    1.Install JDK 64bit
    2.Edit /bin/jmeter.bat

    set HEAP=-Xms2g -Xmx2g -XX:MaxMetaspaceSize=4g
    3.Restart Jmeter

On mac
  • Manual Step:
    1.Install JDK 64bit
    2.Edit /bin/jmeter.sh

    JVM_ARGS="-Xms1m -Xmx4m"
    3.Restart Jmeter

Issue-2.Build server and agent

Agent Setting
  1. Install Jmeter on agent
  2. Modify jmeter.properties

server.rmi.ssl.disable=true
server.rmi.localport=4000 (Need change to available port)

  1. Set the “JMETER_HOME” in .bash_profile (mac) or environment variable (windows)
  2. Run jmeter-server
Server Setting
  1. Install Jmeter on server
  2. Modify jmeter.properties

remote_hosts=192.168.1.135:56481,crm.diningcity.cn:56481 ( agent ip + port )
server.rmi.ssl.disable=true

  1. Set the “JMETER_HOME” in .bash_profile (mac) or environment variable (windows)
  2. Run jmeter -> Run remote

Basic

Tools Operation

  • Create a Test Plan.
  • Right click on mouse and “Add” the Thread Group.
  • Add other controls

Common controls

  • Config Element
    • CSV Data Set Config : Read config from CSV file.
    • HTTP Head Manager : Set the HTTP Head on the thread group.
    • JDBC Connection Configuration : Set DB connection configuration.
    • User Defined Variables : Set variables on the thread group, use ${variables} to link setting.
  • Listener
    • View Results Tree : Check the test result.
    • Summary Report : Check the test performance cost.
  • Sampler
    • HTTP Request : API request
    • JDBC Request : DB request
  • Assertions
    • Response Assertions : Get and check the response
    • Json Assertions : Get and check the json response
    • BeanShell Assertion : Input code and check the response

Common setting

Thread setting

在这里插入图片描述

Database setting

在这里插入图片描述

HTTP Request setting

在这里插入图片描述

Advance

Java code

  • T.B.D
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值