What is the minUptime

丶灬走出姿态 提交于 2019-12-03 02:02:41

Forever's documentation explains each briefly:

--minUptime      Minimum uptime (millis) for a script to not be considered "spinning"
--spinSleepTime  Time to wait (millis) between launches of a spinning script.

A "spinning" application is one that keeps failing/crashing shortly after a restart.

--minUptime sets the minimum amount of time that an application is expected to run. If it crashes before that limit, it's considered to be "spinning" or problematic.

--spinSleepTime sets an amount of time that forever will wait before trying to restart a "spinning" application again.

Collectively, they help prevent having an application rapidly being restarted only to crash each time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!