-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkilling jarvis (in background) doesn't stop python used by snowboy #19
Comments
Je me retrouve régulièrement avec le CPU à 100% à cause d'un processus python
|
En envoyant |
J'arrive à stopper jarvis et ses sous process en tuant le groupe directement $> ./jarvis.sh -b # jarvis lancé en tâche de fond
$> pgrep -fa jarvis.sh
14891 /bin/bash ./jarvis.sh -n # process id de jarvis.sh
$> pgrep -fa python
14965 python stt_engines/snowboy/main.py stt_engines/snowboy/resources/snowboy.umdl # process id de snowboy
$> ps -p 14891 -o pgid=
14882 # group id de jarvis.sh
$> kill -TERM -14882 # le (-) devant 14882 indique de tuer le groupe complet
$> pgrep -fa jarvis.sh
# aucun
$> pgrep -f python
# aucun Voici la script pour tuer Jarvis proprement lorsqu'il est lancé en tâche de fond: pid=`pgrep -f jarvis.sh` # process id de jarvis
gid=`ps -p $pid -o pgid=` # group id de jarvis
kill -TERM -$gid # tuer le group complet |
A été implémenté dans la mise à jour qui détecte si Jarvis tourne déjà en tâche de fond et propose de l'arrêter. |
re Alex j'espère que tu vas bien ! j'ai encore ce soucis. jarvis plante en mode service et puis j'arrive plus à l'arrêter |
Problème: relancer Jarvis va accumuler des process
python
(poursnowboy
), solliciter de plus en plus le CPU et mettre en échec le micro.The text was updated successfully, but these errors were encountered: