@ RequestMapping ( value = MEMORY_URL , method = RequestMethod . GET ) public ResponseEntity < List < MemoryMonitor > > memoryStats ( ) { return new ResponseEntity <> ( MemoryMonitor . getMemoryStats ( ) , HttpStatus . OK ) ; }
Uses Crafter Commons Memory Monitor POJO to get current JVM Memory stats .