Hi,

According to 
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
 
:

> The Java virtual machine shuts down in response to two kinds of events:
>
>    1. The program exits normally, when the last non-daemon thread exits 
>    or when the exit (equivalently, System.exit) method is invoked, or
>    2. The virtual machine is terminated in response to a user interrupt, 
>    such as typing ^C, or a system-wide event, such as user logoff or system 
>    shutdown.
>
> So that for usual application "Ctrl-C" should work just fine. So that in 
your case would be better to consult with Tomcat documentation about 
process of server termination and shutdown hooks.

Best regards 

On Thursday, September 17, 2015 at 4:55:53 PM UTC+2, 
[email protected] wrote:
>
> Hi Marc,
>
> Its mainly about Jacoco javaagent lib that i am using for coverage.I need 
> some assistance from you regarding JVM proper termination to collect .exec
> file data. I tried every way like 
> 1) Start server from Apache GUI window and send java agent as parameter. 
> My app.
>  start properly shutdown properly but .exec file still 0 byte.
> 2)I tried to start server from command line as console application. But 
> some time .exec file populate and some time don't depend on time 
> constraint. I stop my server from command line using CTRL+C .
>
> So,please clear it like what is proper way to stop my JVM when i am using 
> Jacoco javaagent on fly for automation test.
>
> Thanks,
> Saket
>
>

-- 
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/3e4ed7c9-a6d5-42fe-ade2-7fffbc2ff08c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to