-Xbootclasspath/p:/home/admin/software/jdk1.7.0_79/jre/lib/ext/emma.jar
复制 /server/bin/mobileserver/runServer.sh 到 runServer_emma.sh
修改启动语句
nohup java -Xmx1800M -Xms800m -Xbootclasspath/p:/home/q/java/emmalib/emma.jar -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider -XX:+AggressiveOpts -XX:+UseParallelGC -server -classpath “$jarFile” com.qunar.common.mobileArc.MobileServer conf/TaLog.property conf/TripServer.property >> $LOG_HOME/error.log 2>&1 &
复制 /server/bin/mobileserver/stopServer.sh 到 stopServer_emma.sh
1.启动emma:
java emma instr -m overwrite -ip classes -Dmetadata.out.file=credit_coverage.em
2.启动tocmat
3.收集结果
java emma ctl -connect localhost:47653 -command coverage.get,credit_coverage.ec
java emma ctl -connect localhost:26677 -command coverage.get,credit_coverage.ec
/home/admin/software/jdk1.7.0_79/jre/bin/java emma ctl -connect localhost:47653 -command coverage.get,/home/admin/webcmcc.ec
%JM_START% %JM_LAUNCH% -Xbootclasspath/p:E:/alibaba/tools/emma-stable-2.1-lib/emma.jar %
JVM_ARGS% %ARGS% -jar “%JMETER_BIN%ApacheJMeter.jar” %JMETER_CMD_LINE_ARGS%
nohup java -Xmx1800M -Xms800m -Xbootclasspath/p:/home/q/java/emmalib/emma.jar -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider -XX:+AggressiveOpts -XX:+UseParallelGC -server -classpath “$jarFile” com.qunar.common.mobileArc.MobileServer conf/TaLog.property conf/TripServer.property >> $LOG_HOME/error.log 2>&1 &
-Xbootclasspath/p:/home/admin/software/jdk1.7.0_79/jre/lib/ext/emma.jar
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/192850.html