Skip to content

Make zombie children clean themselves up#94

Merged
airhorns merged 1 commit into
mainfrom
parent-crash-monitoring
Feb 14, 2024
Merged

Make zombie children clean themselves up#94
airhorns merged 1 commit into
mainfrom
parent-crash-monitoring

Conversation

@airhorns

@airhorns airhorns commented Feb 9, 2024

Copy link
Copy Markdown
Contributor

The parent wds process can crash sometimes when watching too many files, or due to memory pressure on the system, or really any number of reasons. When this happens, the children become zombies and live forever. If the parent crashes though, they'll never be reloaded, and signals from the terminal won't be sent along to them, so they just accumulate and suck up memory on developer machines! Yuck!

This adds active monitoring to the child wds processes so that they notice if the parent is gone, and kill themselves right away if so. This isn't 100% reliable, but this will at least reap most of em so we stop accumulating so much cruft.

@airhorns airhorns force-pushed the parent-crash-monitoring branch 5 times, most recently from ca22ca4 to bfc5efe Compare February 11, 2024 18:05
The parent wds process can crash sometimes when watching too many files, or due to memory pressure on the system, or really any number of reasons. When this happens, the children become zombies and live forever. If the parent crashes though, they'll never be reloaded, and signals from the terminal won't be sent along to them, so they just accumulate and suck up memory on developer machines! Yuck!

This adds active monitoring to the child wds processes so that they notice if the parent is gone, and kill themselves right away if so. This isn't 100% reliable, but this will at least reap most of em so we stop accumulating so much cruft.
@airhorns airhorns force-pushed the parent-crash-monitoring branch from bfc5efe to 46309fa Compare February 11, 2024 18:09
@airhorns

Copy link
Copy Markdown
Contributor Author

ping @pistachiobaby when you have a moment

@airhorns airhorns merged commit 5100a71 into main Feb 14, 2024
@airhorns airhorns deleted the parent-crash-monitoring branch February 14, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants