Many instances of a script running?

Post here if you need help setting up your server, etc.
Post Reply
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Many instances of a script running?

Post by Moofie »

This is the second time this has happened, and I have received an email from my hosting company on both occasions. There are many many instances of the same script running, causing an abusively high server load. The first time I literally sat there watching it run instance after instance. This time it went unnoticed until the company shut it off. Any ideas? This is what the email contained:

Code: Select all

root@vps-1103902-10807:/home/mark/.armagetronad-styct-dedicated/scripts# ps aux | grep '/home/mark/.armagetronad'
mark 2878 48.6 0.5 142088 5400 pts/2 R+ Jan15 820:36 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 2930 0.0 0.5 141572 5288 pts/14 S+ Jan15 0:00 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 2969 46.3 0.5 142088 5704 pts/2 R+ Jan16 754:08 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3029 45.0 0.5 142088 5404 pts/2 R+ Jan16 701:25 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3071 42.6 0.5 142088 5404 pts/2 R+ Jan16 638:51 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3106 40.4 0.5 142088 5408 pts/2 R+ Jan16 582:09 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3195 35.8 0.9 142088 10020 pts/2 R+ Jan16 471:57 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3222 34.0 0.9 142088 9676 pts/2 R+ Jan16 427:46 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3259 32.2 0.9 142088 9676 pts/2 R+ Jan16 386:17 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3286 30.4 0.9 142088 9856 pts/2 R+ Jan16 346:04 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3313 28.8 0.9 142088 9708 pts/2 R+ Jan16 310:16 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3340 26.9 0.9 142088 10124 pts/2 R+ Jan16 273:15 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3367 25.7 0.9 142088 10140 pts/2 R+ Jan16 247:04 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3397 24.0 0.9 142088 9732 pts/2 R+ Jan16 214:59 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3447 22.9 0.9 142088 10140 pts/2 R+ Jan16 191:53 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3467 25.3 0.9 141316 9620 pts/14 R+ Jan16 207:05 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3499 25.0 0.9 141316 9648 pts/14 R+ Jan16 203:10 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3503 25.4 0.9 141316 9656 pts/14 R+ Jan16 205:51 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3507 25.4 0.9 141316 9632 pts/14 R+ Jan16 205:50 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3515 24.5 0.9 141572 9728 pts/14 R+ Jan16 197:21 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3546 22.3 0.9 142088 10156 pts/2 R+ Jan16 172:53 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3554 24.3 0.9 141316 9604 pts/14 R+ Jan16 188:26 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3558 0.0 0.9 141572 9908 pts/14 S+ Jan16 0:00 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/telly.php
mark 3595 22.5 0.9 142088 10024 pts/2 R+ Jan16 161:00 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3630 22.7 0.9 142088 10132 pts/2 R+ Jan16 154:31 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3651 20.4 0.9 142088 10432 pts/2 R+ Jan16 133:23 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3698 20.6 0.9 142088 10024 pts/2 R+ Jan16 119:45 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3731 20.5 0.9 142088 10348 pts/2 R+ Jan16 106:33 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3839 19.4 0.9 142088 10108 pts/2 R+ Jan16 89:09 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 3910 17.9 0.9 142088 10024 pts/2 R+ Jan16 71:39 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4014 17.7 0.9 142088 10020 pts/2 R+ Jan16 60:05 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4056 17.0 0.9 142088 10024 pts/2 R+ Jan16 47:24 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4117 15.0 0.9 142088 10024 pts/2 R+ Jan16 32:40 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4201 12.2 0.9 142088 10024 pts/2 R+ 00:33 19:10 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4253 9.5 0.9 142088 10024 pts/2 R+ 01:33 9:12 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
mark 4300 0.0 0.9 142088 10020 pts/2 S+ 02:33 0:00 /usr/bin/php /home/mark/.armagetronad-styct-dedicated/scripts/codmt.php
I just pulled this off of what top showed, codmt.php should only be running once, it also keeps updating every second or so.

Code: Select all

 4448 mark      20   0  138m 8476 4288 R  100  0.8 265:48.73 codmt.php
 4475 mark      20   0  138m 8904 4712 R  100  0.8 205:37.32 codmt.php
 4504 mark      20   0  138m 9408 5224 R  100  0.9 145:24.34 codmt.php
 4529 mark      20   0  138m 9480 5292 R  100  0.9  85:11.34 codmt.php
 4558 mark      20   0  138m 9.8m 5820 R  100  1.0  65:03.21 codmt.php
 4577 mark      20   0  138m 9.8m 5816 R  100  1.0  24:53.42 codmt.php
EDIT: I stopped the script on the server, it still appears to be running on the system (in the same fashion of updating every couple of seconds).
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: Many instances of a script running?

Post by epsy »

grep for references to it?
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Many instances of a script running?

Post by dlh »

How are you running your server, and how are you launching the scripts? Maybe you have multiple servers running?

If you're using [RE]SPAWN_SCRIPT, what's the output from LIST_SCRIPTS look like?
Last edited by dlh on Thu Jan 17, 2013 5:21 pm, edited 1 time in total.
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: Many instances of a script running?

Post by Moofie »

Running servers as directed here: http://wiki.armagetronad.org/index.php/ ... x_computer

I killed all the processes of the script, and LIST_SCRIPTS as well as top only shows one instance running now. Odd, oh well, problem is fixed for now.
Post Reply