monitor java, auto restart