@POST @Path("/stop") public void stopMemoryMonitor() { timeMonitor.cancel(); Log.trace("Memory Monitor Stopped"); }