code: @Override
  	protected long detectPID() throws Exception {
  		String jvmName = ManagementFactory.getRuntimeMXBean().getName();
  		int index = jvmName.indexOf('@');
  		if (index < 1) {
  			return 0;
  		}
  		return Long.parseLong(jvmName.substring(0, index));
  	}
docs: Returns the system CPU usage, in percents, between 0 and 100.
  
  @return total CPU usage of the current OS