@Override
  public boolean isProcessAlive(final int pid) {
    isTrue(pid > 0, "Invalid pid '" + pid + "' specified");

    for (VirtualMachineDescriptor vm : VirtualMachine.list()) {
      if (vm.id().equals(String.valueOf(pid))) {
        return true; // found the vm
      }
    }
    return false;
  }
Implementation of the {@link ProcessUtils} SPI that uses the JDK Attach API.

@since GemFire 8.0
geode-core/src/main/java/org/apache/geode/internal/process/AttachProcessUtils.java