APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > runaway processes using cpu time secstopio ––>Re: Defunctprocesses hogging CPU?
Printer Friendly Version




News Group Posts

runaway processes using cpu time secstopio




From: "Brian K. White" <brian@aljex.com>
References: <u7kru9af1iosb0@corp.supernews.com>
<gfye8.44695$2v1.1503700@e3500-atl1.usenetserver.com> Subject: Re: Defunct processes hogging CPU? Date: Tue, 26 Feb 2002 09:36:23 GMT "Lori" <lhelton@bellsouth.net> wrote in message news:gfye8.44695$2v1.1503700@e3500-atl1.usenetserver.com... > We have the same problem in 3.2v4.2 > Our users either lose their telnet connection thru their terminal emulator, > or they just click on the X and close the session leaving pieces of the > program still running. > > I have to clean these up daily. > > Does anyone use terminal emulator software that won't allow you to close the > window without properly logging off the unix box first?

facetwin and anzio and I'm sure many others have config options for that.
but that only handles the users hitting X, not network congestion / dialup
flakiness issues.
(actually, facetwin's connection config file can be edited manually to set
an option that disables all the menus save one little "about" button.)

also it's possible to get a terminal window "stuck" on with that option
enabled sometimes, the windows gets into a state where there is no program
running yet it refuses to close untill you "exit your application..."

what you really need to do is endow a tcp/ip based terminal emulator server
with the HUPCL option that has always been part of serial connections. The
server should "ping" the client periodically, (frequency should be
configurable) and if the client fails to respond within some configurable
number of pings, the server should issue a HUP to the clients open programs.

I have begged facetwin for this but ... *shrug*

I don't know what other methods might be used to set up a keep-alive system
like that.

One thing you can do is set idleout to some very short value like 5 minutes,
and use a terminal that includes a keep-alive feature where it will send a
character or characters of your choosing every n seconds (only when
otherwise idle) as long as you have the window open. (anzio and putty has
this feature) And set it to send \000 (a nul) every 200 or 300 seconds.














so as long as the window is open and the connection is good, the emulator
will send nulls every few minutes while you are idle.

if the connection goes down or the PC goes off on power-save, or the user
hits X, the terminal emulator is no longer sending nulls every few minutes,
so in five minutes the idleout program will close the users headless
programs.

If I wasn't practically forced to use facetwin for other reasons I would in
fact do this very thing at lots of sites where the users seem to have a
thick layer of clue-teflon. (I have also begged facetwin for the "send nulls
when idle" feature to no effect)

Maybe I should work up some sort of simple demonstration to use at certain
sites, with the guilty parties and the boss and a terminal and a calculator
and cap off the little show with a clear and unavoidable estimate of how
much wasted $$$ the user is _directly_ responsible for over the course of
the last year and a level, questioning stare in the eyes as if to say "So,
you want to keep hitting that X button because it's just soooo convenient? I
guess then that it's worth $xxx every month to you, right? And we can start
billing _you_ for this part instead of your boss here, Right?"

*sigh* ahhh fantasies...  :)  (what have I become, that now, _this_ is the
nature of my fantasies?)

I wish there were one terminal emulator that had all the features I consider
necessary instead of  three favorites that each have something the others
don't, but each lack something at least one of the others has... *sigh* but
that's a long story best given it's own thread some other time...

--
Brian K. White  --  brian@aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani




If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - CPU
       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here