首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Performance Tool(二)Gatling SBT

2013-12-26 
Performance Tool(2)Gatling SBTPerformance Tool(2)Gatling SBT1. Set up the Project gatling-sbtgit c

Performance Tool(2)Gatling SBT

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

热点排行