Termination semantics for System JVM
- Use a http server on node side for initial bootstrap of IPC.
- When node becomes idle, check if JVM is also idle. If so, then terminate JVM. Else, check JVM again after some time.
- When node process is interrupted (SIGTERM or unhandled-exception), JVM is requested to terminate.
- When node process gets abruptly killed (segfault, SIGTERM, etc), JVM detects the absence of heart beat signal from node and terminates automatically.
Please test and review. Apart from running the mocha test, there is now a test which can be run directly on node (
16 Feb, 2016
15 Feb, 2016
13 Feb, 2016
12 Feb, 2016