If poper shutdown doesn't work for you there are two alternatives to
request a dump without shutting down tomcat:
1) Enable JMX (agent parameter jmx=true), connect to the tomcat JVM with
JConsole and execute dump on the bean org.jacoco:type=Runtime
2) Run the JaCoCo agent in tcpserver output mode (on a free port!) and
request a dump with the Ant task or Maven goal.
Regards,
-marc
On 10.12.14 20:17, [email protected] wrote:
Hi Marc,
I shutdown the jvm gracefully only. Still nothing happens on the jacoco.exec. When I
start the server and do "ps -ef | grep jacoco", I do see the java agent is
been set :
-javaagent:/xyz/home/emahaboo/work/deployment/deployment_active/xyz/site/xyz/WEB-INF/lib/org.jacoco.agent-0.5.8.201206210517.jar=includes=com.xyz.xx.*,excludes=com.xyz.xx.webclient.command.*UIBean*,output=file,address=lxdm839m7,port=6301
-Eajaz
On Monday, December 8, 2014 9:07:59 PM UTC-8, Marc R. Hoffmann wrote:
The coverage data is written at the moment the JVM under test shuts
down. Make sure the tomcat server is properly shut down, not just killed.
Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/548D656A.3090901%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.