Steps to reproduce:
1. Do a
appc appcd restart
in the command prompt.
Actual results:
1. The daemon does not restart (Not sure if it does restart internally, but gives wrong message that it didn't in the terminal).
ITEM-AX44549:QEUtility-Node lchoudhary$
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
ITEM-AX44549:QEUtility-Node lchoudhary$ appc appcd restart
Appc Daemon already started
2. It also keeps on adding
appcd-plugin-host
processes after each restart command run. These processes stay running & consume memory. (Attached a screenshot for reference).
Expected results:
1. Daemon should restart successfully every time command is run & should not keep on adding new appcd-plugin-host processes or kill/stop the old ones.
I am able to reproduce this issue. I need to run:
to successfully kill all the running append-plugin-host processes.
Master PR: https://github.com/appcelerator/appc-daemon/pull/241 1_0_X PR: https://github.com/appcelerator/appc-daemon/pull/242
Verified the fix with Daemon 1.0.1. Doing a
appc appcd restart
does restart daemon & does not spin up extraappcd-plugin-host
processes. The old processes are killed & new ones are started. Closing. Studio Ver: 5.0.0.201712081732 SDK Ver: 7.0.1.v20171218094049 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.11 Appc CLI: 7.0.1-master.5 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.10 Node Ver: 8.9.1 Java Ver: 1.8.0_101