105106107108109110111112113114115
while (! _resin.isClosing()) { try { Thread.sleep(10); if (! checkMemory(runtime)) { shutdown.shutdown(ExitCode.MEMORY, "Resin shutdown from out of memory"); // dumpHeapOnExit(); return; } if (! checkFileDescriptor()) {
111112113114115116117118119120121
// dumpHeapOnExit(); return; } if (! checkFileDescriptor()) { shutdown.shutdown(ExitCode.MEMORY, "Resin shutdown from out of file descriptors"); //dumpHeapOnExit(); return; }
122123124125126127128129130131132
if (_waitIn != null) { if (_waitIn.read() >= 0) { socketExceptionCount = 0; } else { shutdown.shutdown(ExitCode.WATCHDOG_EXIT, "Stopping due to watchdog or user."); return; } }