From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078612210534.tru64-unix-managers.marc@archive.invalid> From: pgouffon () charme ! if ! usp ! br Date: Wed, 21 May 1997 21:24:09 +0000 To: tru64-unix-managers Subject: About "SUMMARY: orphaned netscape processes" X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078612210534 A week ago Kevin Reardon posted a summary about fixing runaway netscape processes, which is happening on our systems several times a day. I tried the proposed ksh script but without success: even after 1000s of cpu, netscape remains hyperactive, consuming close to 100% of cpu when alone. The script is: #!/bin/ksh LD_LIBRARY_PATH="/usr/3.2D/shlib" export LD_LIBRARY_PATH ulimit -t 1000 ulimit -c 0 nice -5 /usr/local/bin/netscape-alpha3.0 $* I tried the same script on a small looping program and it works fine, so the problem is netscape, that is not terminated by CPU exceeded. Playing with these processes, I found that a kill -TERM will not affect netscape but a kill -9 will, so that means that netscape blocks the SIGTERM which may explain why the shell script does not work. The version of netscape that we are running is 2.0. Now the question: is there a way to avoid netscape from blocking the signal or to force ksh (or other shell) to use a more effective, non blockable, signal? In a more general way, has someone a script that will kill any regular user's process, detached or not, that has used above a certain limit of CPU and notify the system manager and the user? Thanks, will summarize. -------------------------------------------------------------------------------- PHILIPPE GOUFFON | Instituto de Fisica | INASMUCH as three quarters of the earth's Universidade de Sao Paulo | surface is water and only one fourth is land Caixa Postal 66318 | the good Lord's Intentions are very clear: 05389-970 Sao Paulo | Brazil | A man's time should be divided: | Tel: (55)(11)818-7045 | three fourths for sailing and one fourth for work. Fax: (55)(11)818-6832 | email: pgouffon@if.usp.br | --------------------------------------------------------------------------------