how to gracefully shutdown the Xitrum

29 views
Skip to first unread message

Alexey Oparin

unread,
Apr 11, 2017, 6:59:07 AM4/11/17
to Xitrum web framework
Hello,

I am running Xitrum as a background process. For stopping I send TERM signal to java process and all currently precessed requests are killed also.

Is there a way to stop Xitrum gracefully?

I tried to register jvm shutdown hook with Runtime.getRuntime.addShutdownHook which simply calls xitrum.Server.stop() but it stops server immediately and don't wait until working requests are finished.

Alexey.

Ngoc Dao

unread,
May 25, 2017, 10:09:05 PM5/25/17
to Xitrum web framework
Yes you can stop Xitrum gracefully.

Currently xitrum.Server.stop has this problem:
https://github.com/xitrum-framework/xitrum/issues/651

For now, please use the workaround mentioned in the issue above.
Reply all
Reply to author
Forward
0 new messages