Performance Tool(2)Gatling SBT
1. Set up the Project gatling-sbt
>git clone https://github.com/gatling/gatling-sbt.git
Error Message:
Error during sbt execution: java.lang.IncompatibleClassChangeError: JLine incompatibility detected. Check that the sbt launcher is version 0.13.x or later
Solution:
update my sbt version
>port install sbt
>sbt --version
sbt launcher version 0.13.0
It is not running right now. So I switch to another version of gatling-sbt from here https://github.com/krishnenc/gatling-sbt
The latest version is
https://github.com/excilys/gatling/wiki/Changelog#wiki-2.0.0-M3
https://github.com/excilys/gatling/wiki/Changelog#wiki-1.5.3
The sample codes are in easygatling. I am using the 1.5.3 version.
Based on the project easygatling, we can run it like this.
>sbt run
Then choose simulation
Or
>sbt compile
>export JAVA_OPTS="-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -Xss1024k -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly"
>sbt stage
>target/start -s demo.SimulationTaobao
Actually, we can modify the target/start file and, we only need the jar file and results, userfiles directory.
References:
https://github.com/gatling/gatling-sbt
https://github.com/krishnenc/gatling-sbt
http://ska-la.blogspot.com/2012/07/gatling-tool-in-sbt-or-play-sample.html
https://github.com/excilys/gatling
https://github.com/sbt/sbt-assembly
- 浏览: 2489479 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Gatling的SBT插件演示一个简单的项目,展示了如何配置和使用Gatling的SBT插件来运行Gatling模拟。 该项目使用SBT 1,可。获得项目git clone ...
加特林-sbt-模板 Gatling 负载测试模板您的 http Web 服务 用 Gatling 2.1.3 测试 运行: $ sbt test 报告生成到/target/gatling文件夹中 直接在调整测试参数 Gatling 配置可以在修改 贡献者(blinkbox 书籍 2015)...
Gatling is a highly capable load testing tool. It is designed for ease of use, maintainability and high performance.
gatling 3.0.2
2018-5-14 于官网下载(https://gatling.io/download/) Gatling主要用于测量基于HTTP的... 2 生成比较详细的压力测试报告。 3 能够更灵活的编写压力脚本。 4 可以jenkins集合,将压力测试整合自动化持续集成中。
基于moto 开源的java测试架构 gatling 实现的测试用例书写方式
Gatling的非官方Dubbo压测插件,基于Gatling 2.3.1。
Gatling是一款基于Scala 开发的高性能服务器性能测试工具,它主要用于对服务器进行负载等测试,并分析和测量服务器的各种性能指标。Gatling主要用于测量基于HTTP的服务器,比如Web应用程序,RESTful服务等,除此之外...
gatling 新兴的性能测试工具 使用scala语言编写脚本
性能测试工具gatling3.0.0, 官网下载太慢,上传到csdn,方便下载,供大家使用
performance-test-gatling ./bin/install.sh 跑步 默认模拟: ./gatling/bin/gatling.sh IDevelop模拟: ./gatling/bin/gatling.sh -sf simulations/ IDevelop 集群模拟并收集结果: ./bin/cluster-run.sh < ...
Gatling是一个高性能,简洁强大的DSL API,支持命令行运行,支持Jenkins,以便于持续集成
Gatling是一款功能强大的负载测试工具。它的设计易于使用,可维护性和高性能。开箱即用,Gatling提供了对HTTP协议的出色支持,使其成为负载测试HTTP服务器的首选工具。
性能测试工具gatling2.1.7, 官网下载太慢,上传到csdn,方便下载,供大家使用
1.5.4版的gatling
并创建一个jar文件: $ sbt assembly如果要更改用于创建jar文件的Gatling版本,请在更改以下行: " io.gatling " % " gatling-core " % " 3.3.1 " % " provided " , 并运行sbt assembly 。 如果您不想将kafka-...
gatling 新兴的性能测试工具 使用scala语言编写脚本
性能测试工具。该工具仅用学习使用,不可用于商业用途,如有版权问题,请联系删除!
参数化 用于性能测试脚本编写 提供参数化新方案 通过调用自己的java工具类 实现参数化 同时也可以实现参座数据库 链接外部操作等
并创建一个jar文件: $ sbt assembly如果要更改用于创建jar文件的Gatling版本,请在更改以下行: lazy val gatlingVersion = " 2.3.1 "运行压力测试使用Docker 如何在Docker容器中运行压力测试? $ docker build -t...