LinuxMCE Forums
June 19, 2013, 08:28:29 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Start_NewMD_interactor.sh takes a lot of CPU  (Read 422 times)
Viking
Addicted
*
Posts: 521


View Profile
« 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 :

Code:
#!/bin/bash

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

Greetings
Viking
Logged

phenigma
wants to work for LinuxMCE
**
Posts: 779


View Profile
« Reply #1 on: November 13, 2009, 06:18:45 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.
Logged

Viking
Addicted
*
Posts: 521


View Profile
« Reply #2 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
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!