inteltechs
12-04-2003, 04:08 AM
anyone knows a good pid killer perl or shell script?
![]() | View Full Version : pid killer script inteltechs 12-04-2003, 04:08 AM anyone knows a good pid killer perl or shell script? LP-Trel 12-04-2003, 04:28 AM Hmm.. kill -9 works wonders. What are you looking for the script to do? inteltechs 12-04-2003, 04:38 AM when you have something like this and you are not around, kill -9 or killall won't work. I've been using watchman but I don't like that script. 1:25am up 1 day, 12:19, 3 users, load average: 22.15, 9.26, 4.20 218 processes: 214 sleeping, 1 running, 3 zombie, 0 stopped CPU0 states: 86.2% user, 13.2% system, 0.0% nice, 0.0% idle CPU1 states: 87.1% user, 12.3% system, 0.0% nice, 0.0% idle CPU2 states: 84.4% user, 15.0% system, 0.0% nice, 0.0% idle CPU3 states: 81.0% user, 19.0% system, 0.0% nice, 0.0% idle Mem: 1030676K av, 1021084K used, 9592K free, 0K shrd, 32044K buff Swap: 2048276K av, 697248K used, 1351028K free 141148K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 468 nobody 18 0 48136 34M 3796 R 50.0 3.4 0:25 /usr/local/apache/bin/httpd -DSSL 32105 nobody 18 0 271M 125M 7320 R 49.2 12.4 3:37 /usr/local/apache/bin/httpd -DSSL 32136 nobody 16 0 248M 123M 6764 R 48.4 12.2 3:25 /usr/local/apache/bin/httpd -DSSL 32163 nobody 19 0 239M 128M 8728 R 47.8 12.7 3:15 /usr/local/apache/bin/httpd -DSSL 375 nobody 16 0 30964 17M 7608 R 46.3 1.7 0:07 /usr/local/apache/bin/httpd -DSSL 32072 nobody 20 0 86428 55M 8656 R 44.5 5.4 0:56 /usr/local/apache/bin/httpd -DSSL 32203 nobody 18 0 256M 122M 6448 R 43.9 12.1 3:28 /usr/local/apache/bin/httpd -DSSL 8 root 9 0 0 0 0 SW 16.0 0.0 42:43 kscand sprintserve 12-04-2003, 07:39 AM Is it spawning more processes all the time? If not, kill -9 should work fine. Or even a simple Apache restart should do the trick depending on the nature/cause of the processes. absolut 12-05-2003, 06:03 PM Originally posted by inteltechs anyone knows a good pid killer perl or shell script? I guess you should try PRM (Process Resource Monitor) by rfxnetworks (http://www.rfxnetworks.com/prm.php) AlaskanWolf 12-05-2003, 06:18 PM I tred that rfx script and wasnt to impressed by it, didnt kill much of anything bacanak 08-02-2004, 10:54 PM Originally posted by inteltechs when you have something like this and you are not around, kill -9 or killall won't work. I've been using watchman but I don't like that script. 1:25am up 1 day, 12:19, 3 users, load average: 22.15, 9.26, 4.20 218 processes: 214 sleeping, 1 running, 3 zombie, 0 stopped CPU0 states: 86.2% user, 13.2% system, 0.0% nice, 0.0% idle CPU1 states: 87.1% user, 12.3% system, 0.0% nice, 0.0% idle CPU2 states: 84.4% user, 15.0% system, 0.0% nice, 0.0% idle CPU3 states: 81.0% user, 19.0% system, 0.0% nice, 0.0% idle Mem: 1030676K av, 1021084K used, 9592K free, 0K shrd, 32044K buff Swap: 2048276K av, 697248K used, 1351028K free 141148K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 468 nobody 18 0 48136 34M 3796 R 50.0 3.4 0:25 /usr/local/apache/bin/httpd -DSSL 32105 nobody 18 0 271M 125M 7320 R 49.2 12.4 3:37 /usr/local/apache/bin/httpd -DSSL 32136 nobody 16 0 248M 123M 6764 R 48.4 12.2 3:25 /usr/local/apache/bin/httpd -DSSL 32163 nobody 19 0 239M 128M 8728 R 47.8 12.7 3:15 /usr/local/apache/bin/httpd -DSSL 375 nobody 16 0 30964 17M 7608 R 46.3 1.7 0:07 /usr/local/apache/bin/httpd -DSSL 32072 nobody 20 0 86428 55M 8656 R 44.5 5.4 0:56 /usr/local/apache/bin/httpd -DSSL 32203 nobody 18 0 256M 122M 6448 R 43.9 12.1 3:28 /usr/local/apache/bin/httpd -DSSL 8 root 9 0 0 0 0 SW 16.0 0.0 42:43 kscand did you find a solution to your problem i have the same problem please help vanHelsing 08-03-2004, 01:06 AM What causes those heavy loads to server? Its apache, yeah... Some bad .php script etc? How can you track what is cousing those loads? |