DarthSim / hivemind

Process manager for Procfile-based applications
MIT License
1k stars 30 forks source link

hivemind takes 99% CPU #7

Closed alex35mil closed 6 years ago

alex35mil commented 6 years ago

Hey, I noticed that hivemind takes 99% CPU all the time. Initially, I thought it's something w/ my processes, but nope.

Procfile

fake: sleep 10000

results in

screen shot 2017-11-09 at 12 00 48

Same when I run my app.

macOS: 10.12.6 Processor: 2,9 GHz Intel Core i7 Memory: 16 GB 2133 MHz LPDDR3

sheerun commented 6 years ago

Same issue.

Here's sample of this process: https://gist.github.com/sheerun/fddaad04ee2138ed5c5ad765c31efe3e

And here's proof it does a ton of syscalls and context switches: https://i.imgur.com/HfTAxeT.png

DarthSim commented 6 years ago

Hi guys. Thanks for pointing on this. I had the same issue with overmind, but didn't check hivemind. Fixed in the latest release https://github.com/DarthSim/hivemind/releases/tag/v1.0.4 PR to Homebrew is waiting for merge https://github.com/Homebrew/homebrew-core/pull/20881