Hi JK,

Below things might help.
JVM shutdown hook dump data to exec file. for more info - 
http://www.eclemma.org/jacoco/trunk/doc/faq.html , section <Can I collect 
coverage information without stopping the JVM?>

-Jitendra

On Friday, March 8, 2019 at 12:13:41 AM UTC+5:30, jk wrote:
>
> Hi,
>
> Thanks Jitendra and Evgeny for your help and support.
>
> I tried to run with the CATALINA_OPTS="${CATALINA_OPTS} ${JACOCO_OPTS}" 
> but after which the jacoco.exec file generated is of 0 size.
>
> Thanks.
> JK.
>
> On Thu, Mar 7, 2019 at 4:32 AM Evgeny Mandrikov <[email protected] 
> <javascript:>> wrote:
>
>>
>> On Wednesday, March 6, 2019 at 11:00:00 PM UTC+1, jk wrote: 
>>>
>>> The contents of the jacoce.exec file are cryptice looks like its a 
>>> proprietary format , adding a screenshot here
>>>
>>
>> Please note for future that binary files can be sent as attachments.
>>
>> On Wednesday, March 6, 2019 at 11:22:13 PM UTC+1, jk wrote:
>>>
>>> One more data point, didn't mention it in my last email. In Jacoce 
>>> session i don't see the webapp specific packages but generic java packages
>>>
>>
>> Thus as was said in 
>> https://groups.google.com/d/msg/jacoco/DZNqIGaoPKQ/9m5btqlECQAJ
>>
>> classes not listed on this page either have not been executed or have not 
>> been seen by the JaCoCo agent
>>
>> And Jitendra is right - in your current setup classes of application are 
>> not seen by agent, because JVM that executes application doesn't use agent
>>
>> On Thursday, March 7, 2019 at 5:00:16 AM UTC+1, Jitendra Kumar wrote:
>>>
>>>
>>> Edit your setup.sh file as below:
>>>
>>> JACOCO_OPTS=" -javaagent:<jacoco 
>>> path>/jacoco/lib/jacocoagent.jar=destfile=<jacoco 
>>> path>/jacoco/jacoco.exec,append=true,includes=a.b.c.d.*"
>>>
>>>  
>>>
>>> CATALINA_OPTS="${CATALINA_OPTS} ${JACOCO_OPTS}"
>>>
>>>
>>> set to Catalina opts not in java opts: why? check below link.
>>>
>>>
>>> "
>>> https://stackoverflow.com/questions/11222365/catalina-opts-vs-java-opts-what-is-the-difference
>>> "
>>>
>>
>> Nice catch, Jitendra !
>>
>> Please note that specification of "append=true" is redundant, because 
>> this is default.
>> And please be careful with option "includes", because it limits scope of 
>> classes that will be processed by agent, and it also has good default value 
>> "includes=*".
>> See https://www.jacoco.org/jacoco/trunk/doc/agent.html
>>
>>
>> Regards,
>> Evgeny
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "JaCoCo and EclEmma Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jacoco/DZNqIGaoPKQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jacoco/8c463027-11c9-4ba0-8cc2-56c57ae485eb%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jacoco/8c463027-11c9-4ba0-8cc2-56c57ae485eb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/a239f704-d38f-45a2-878c-c2385f155cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to