tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* About "SUMMARY: orphaned netscape processes"
@ 1997-05-21 21:24 pgouffon
  0 siblings, 0 replies; only message in thread
From: pgouffon @ 1997-05-21 21:24 UTC (permalink / raw)
  To: tru64-unix-managers

A week ago Kevin Reardon <kreardon@cerere.na.astro.it> 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   |
--------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-05-21 21:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-21 21:24 About "SUMMARY: orphaned netscape processes" pgouffon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox