Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Killing java jobs

Reply
Thread Tools

Killing java jobs

 
 
Roedy Green
Guest
Posts: n/a
 
      04-12-2004
Technopeasants have a rough time shutting down a failed java app. They
have to hit crtl-alt-delete, find the task in a jumping list
(which might contain several tasks named java.exe), and delete it.

Is there something easier, something that could be invoked by just
clicking an icon to kill a job?


--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
 
mcmasty
Guest
Posts: n/a
 
      04-12-2004
Roedy Green wrote:
> Technopeasants have a rough time shutting down a failed java app. They
> have to hit crtl-alt-delete, find the task in a jumping list
> (which might contain several tasks named java.exe), and delete it.
>
> Is there something easier, something that could be invoked by just
> clicking an icon to kill a job?
>
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Not without rolling your own.

It depends on your runtime platform, etc. One thing we do at my job is
create standard "start up" scripts that create PID files, then you know
the process id of the job you just started. This is a little more
simple in the bash/Unix/Linux environment, but I'm pretty sure it is
possible in Windows.

Another solution we've implemented is to basically embed any standalone
process/program with a socket listener (this needs to be a seperate
thread in case your main thread is hung, etc, you still need be able to
access the process. You can assign the port that the socket listener
listens to, in a config file at start up time. Then you implement a
known set of commands (check, start, stop, kill, etc.) that you can
issue on that socket (via a client you also have write). Then you can
administer the daemon/process via this admin client.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JOBs............JOBs............JOBs hardikh2000 Python 0 08-16-2005 03:55 AM



Advertisments