Invalidate methods are not called when killing application with SIGTERM signal

12 views
Skip to first unread message

vianney...@dooapp.com

unread,
Nov 2, 2015, 10:56:25 AM11/2/15
to wisdom-discuss
Hi all,

I'm currently playing with the SIGTERM signal to stop our application properly if we need to. But what I noticed is that we do not pass through @Invalidate methods during the ending process.

So I started to test with a simple app (with 2 maven submodules) and in this case everythings works great. So I was wondering if it was not cause of a too long ending process where the server could be killed before.
I added a Thread.sleep() in one of my @Invalidate methods and I saw that the app end before reach the end of the method.

Is it a normal security process ? If so, is there any best practices we should know when terminate properly our app or a timeout parameter we can configure ?

Clement Escoffier

unread,
Nov 2, 2015, 10:58:09 AM11/2/15
to wisdom-...@googlegroups.com
Hi,

As far as I remember, it waits to 10 seconds before “abruptly” stopping the framework. Did you exceed the 10 seconds ?

Clement
--
You received this message because you are subscribed to the Google Groups "wisdom-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisdom-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/wisdom-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/wisdom-discuss/2662d544-221a-4030-bb89-6295aa912b4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages