LinuxMCE Forums

General => Users => Topic started by: Viking on November 13, 2009, 04:38:08 PM

Title: Start_NewMD_interactor.sh takes a lot of CPU
Post by: Viking on November 13, 2009, 04:38:08 PM
Hi,

I have noticed that on my system /usr/pluto/bin/Start_NewMD_interactor.sh takes a lot of CPU.

It starts "/usr/pluto/bin/interactor-server" ( whatever it does) in a loop. And it seems that if it already for some reason is running, then interactor-server says that the port is already used and exits. That creates a lot of starts and take quite some CPU.

Something like this might be better :

#!/bin/bash

while :; do
        killall /usr/pluto/bin/interactor-server 2>/dev/null
        sleep 1
        /usr/pluto/bin/interactor-server
done


Greetings
Viking
Title: Re: Start_NewMD_interactor.sh takes a lot of CPU
Post by: phenigma on November 13, 2009, 06:18:45 PM
Quote from: Viking on November 13, 2009, 04:38:08 PM
I have noticed that on my system /usr/pluto/bin/Start_NewMD_interactor.sh takes a lot of CPU.

Have you checked to see if more than one copy of the script is running?  I had this issue after an update about a month ago and found that 2 copies of the script were launched.  I did a 'sudo kill xxxx' to kill the 2nd process and my CPU usage dropped to normal levels.  I think I performed a re-install and the problem did not return afterwards so I am unsure what caused the 2nd script to be executed in the first place.  If I recall correctly I had 2 copies of many things that launched erroneously on boot during that time period.

J.
Title: Re: Start_NewMD_interactor.sh takes a lot of CPU
Post by: Viking on November 15, 2009, 09:11:50 PM
I only noticed one script. There at more processes listing the script., but that has to do with the way it is started (IIRC).

I will reinstall after the next beta is out - to test if it is gone.

Greetings
Viking