I have added below lines to setenv.bat under %tomcat%/bin directory.
SET JACOCO="-javaagent:C:\jacoco-agent-jar\jacocoagent.jar=output=tcpserver,address=localhost,port=6300,destfile=C:\jacoco.exec,append=true,includes=*"
SET JAVA_OPTS= %JAVA_OPTS% %JACOCO%
And then restarted the
tomcat server couple of times by changing output values etc, but no luck. I also checked after restart, whether Java_opts environment variable got set or not. But it got listed.
Thanks in advance. Please suggest on if anything I am missing here.