Msngr high CPU usage on hub
Opened this issue · 0 comments
shortstheory commented
Can be reproduced by running sudo bash scripts/runHublets.sh
and then observing top output. It appears two instances of Msnger are spawned.
Output from runHublets.sh:
Processing with DIR as scripts and SWIFIIC_HUB_BASE as /opt/swifiic
Processing
Launching suta/suta-hub.jar with in.swifiic.plat.app.suta.hub.Suta
Trying to create daemon for :: /usr/bin/java -Dfile.encoding=UTF-8 -classpath /opt/swifiic/suta/suta-hub.jar:/opt/swifiic/hub/lib/in-swifiic-hub.jar:/opt/swifiic/lib/hub/commons-codec-1.8.jar:/opt/swifiic/lib/hub/mysql-connector-java-5.1.29-bin.jar:/opt/swifiic/lib/common/simple-xml-2.7.1.jar:/opt/swifiic/lib/hub/log4j-api-2.2.jar:/opt/swifiic/lib/hub/log4j-core-2.2.jar:/opt/swifiic/lib/hub/log4j-jcl-2.2.jar:/opt/swifiic/lib/hub/log4j-jul-2.2.jar in.swifiic.plat.app.suta.hub.Suta :: with logas at /opt/swifiic/log/suta
Command tried is start-stop-daemon --start -p /opt/swifiic/pid/suta.pid -g swifiic -c swifiic -b -m --startas /bin/bash -- -c /usr/bin/java -Dfile.encoding=UTF-8 -classpath /opt/swifiic/suta/suta-hub.jar:/opt/swifiic/hub/lib/in-swifiic-hub.jar:/opt/swifiic/lib/hub/commons-codec-1.8.jar:/opt/swifiic/lib/hub/mysql-connector-java-5.1.29-bin.jar:/opt/swifiic/lib/common/simple-xml-2.7.1.jar:/opt/swifiic/lib/hub/log4j-api-2.2.jar:/opt/swifiic/lib/hub/log4j-core-2.2.jar:/opt/swifiic/lib/hub/log4j-jcl-2.2.jar:/opt/swifiic/lib/hub/log4j-jul-2.2.jar in.swifiic.plat.app.suta.hub.Suta
process already running.
Processing
Launching msngr/msngr-hub.jar with in.swifiic.app.msngr.hub.Messenger
Trying to create daemon for :: /usr/bin/java -Dfile.encoding=UTF-8 -classpath /opt/swifiic/msngr/msngr-hub.jar:/opt/swifiic/hub/lib/in-swifiic-hub.jar:/opt/swifiic/lib/hub/commons-codec-1.8.jar:/opt/swifiic/lib/hub/mysql-connector-java-5.1.29-bin.jar:/opt/swifiic/lib/common/simple-xml-2.7.1.jar:/opt/swifiic/lib/hub/log4j-api-2.2.jar:/opt/swifiic/lib/hub/log4j-core-2.2.jar:/opt/swifiic/lib/hub/log4j-jcl-2.2.jar:/opt/swifiic/lib/hub/log4j-jul-2.2.jar in.swifiic.app.msngr.hub.Messenger :: with logas at /opt/swifiic/log/msngr
Command tried is start-stop-daemon --start -p /opt/swifiic/pid/msngr.pid -g swifiic -c swifiic -b -m --startas /bin/bash -- -c /usr/bin/java -Dfile.encoding=UTF-8 -classpath /opt/swifiic/msngr/msngr-hub.jar:/opt/swifiic/hub/lib/in-swifiic-hub.jar:/opt/swifiic/lib/hub/commons-codec-1.8.jar:/opt/swifiic/lib/hub/mysql-connector-java-5.1.29-bin.jar:/opt/swifiic/lib/common/simple-xml-2.7.1.jar:/opt/swifiic/lib/hub/log4j-api-2.2.jar:/opt/swifiic/lib/hub/log4j-core-2.2.jar:/opt/swifiic/lib/hub/log4j-jcl-2.2.jar:/opt/swifiic/lib/hub/log4j-jul-2.2.jar in.swifiic.app.msngr.hub.Messenger