New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Conflict] 同时使用JacocoAgent参数和XquickStart参数启动时报错 #633
Comments
关于jacoco方面: |
quickstart不要与javaagent一起使用,由于javaagent里可以会对类做各种修改,包括增加字段,这个与quickstart的功能是冲突的 |
使用JacocoAgent的目的是收集覆盖率信息吗。如果目的是收集覆盖率信息,关闭XquickStart和开启XquickStart收集覆盖率结果应该是一致的,可以关闭XquickStart来收集覆盖率 |
主要是这个启动参数,我们并不能够非常灵活的控制,所以并不能选择在启用quickStart时去掉JacocoAgent。 另外,使用quickStart启动失败时,能不能自动切换成一般方式启动 |
目前是不行的。这里并不是quickstart启动失败了,因为JacocoAgent抛异常了,但是具体什么异常,quickstart是无法知道的。 |
好的,感谢答疑 |
Description
当在启动参数中添加-javaagent:xxx/jacocoagent.jar=includes=,output=tcpserver,port=10000,address= 时,可以添加-Xquickstart:verbose参数启用录制功能,但是在参数相同的情况下进行回放,会出现异常
Steps to Reproduce
Steps to reproduce the behavior:
/xxx/dragonwell-8.18.19/bin/java -javaagent:xxx/jacocoagent.jar=includes=,output=tcpserver,port=10000,address= -Xquickstart:verbose org.apache.catalina.startup.Bootstrap start
*4. 如果在录制启动时把jacoco的参数去掉,在回放时是可以添加的
JDK version
Alibaba Dragonwell Extended Edition 8.18.19
Execution environment
The text was updated successfully, but these errors were encountered: