Another variation is for threads to kill and re-create themselves periodically so that they remain “fresh.” This mitigates memory leaks and other problems, but in doing so hides them and makes them more difficult to find.
Should you leave a few threads/workers intact for a longer period to reveal memory leaks? Use them as canaries?
Given 10 threads. You recreate 9 regularly. You keep 1 alive forever. How long will it take th…