[email protected] wrote:
> hello
>  i need a way to kill a process Id without having to get all item
> locks. sometimes there are over 400 users in the systems and it takes
> forever to show all the locks before u can identify the specific
> process ID and kill it.
> i'll be grateful for your suggestions, thank you in advance
>
>   
Rule #1 - never use kill -9 on a process
Rule #2 - use LOGOFF first
Rule #3 - If that does not work, try other kills first
Rule #4 - Finally, if nothing else will stop the process, you can use 
kill -9 (because it won't be writing to a file in all probability)

Also, if you have processes that are hanging because they are waiting on 
locks, this means you have an application programming error. Identify 
what program is holding locks for more than a fleeting period and fix 
that; if there are none of those, then you probably have a deadly 
embrace situation and need to trace through the logic and fix that.

If you are able to identify the process that is holding the lock, then 
you should be able to work out why it is holding the lock. Use the WHERE 
(V command (and other commands) to work out where the program is and 
debug it. Perhaps your other programs should not be doing a READU 
without a LOCKED clause, but should be timing out? Are you allowing 
users to sit at an input prompt holding a lock? If so, don't do that, 
but if you think it is too difficult to rejig the app, then at least use 
INPUT FOR and release the lock. Maybe you can use the AUTOLOGOUT facilities?

Also, please take a moment to read the posting guidelines linked below - 
you need to supply information on your operating system, version of 
jBASE and anything about your application that might be vaguely relevant.

The slowness of SHOW-ITEM-LOCKS can be a pain, but then you are not 
supposed to need it that often. Make sure you don't program background 
processes that continually monitor such things as WHERE and LISTU and so 
on.

Jim
> paul
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to