Some fixes for JVM monitor process

* Fix compile path for `java_monitor` code.

* Use repeating task at fixed rate (`readyForSuicide` was only running once).

* Need to use static class in static context.

* Add some additional output in test.