Jacoco agent in tcpclient mode inside a docker container?

458 views
Skip to first unread message

p.re...@gmail.com

unread,
Feb 6, 2017, 7:27:41 PM2/6/17
to JaCoCo and EclEmma Users
Hello,

I am setting up a code coverage for my project which follows a micro service architecture with services deployed as docker containers. I have setup an individual docker container running ExecutionDataServer from the examples. Now my dilemma is how to make the jacoco agent running in tcpclient mode publish to this server.

As far as I understand that jvm has to get terminated so that the execution data is dumped. I tried several ways of shutting down the docker containers but I do not see any data getting written to the server. Any insights into this is appreciated.


Following is the configuration in each of the microservices

-javaagent:/lib/org.jacoco.agent-0.7.8runtime.jar=output=tcpclient,address=jacocoserver,port=6300


address attribute is the hostname of the container running ExecutionDataServer.

Thanks,
Revanth.

Marc R. Hoffmann

unread,
Feb 7, 2017, 1:52:01 AM2/7/17
to jac...@googlegroups.com
Hi Revanth,

please try to terminate the JVM properly first before you shutdown the
container.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages