Killing java jobs

Discussion in 'Java' started by Roedy Green, Apr 12, 2004.

  1. Roedy Green

    Roedy Green Guest

    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.
    Roedy Green, Apr 12, 2004
    #1
    1. Advertising

  2. Roedy Green

    mcmasty Guest

    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.
    mcmasty, Apr 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hardikh2000

    JOBs............JOBs............JOBs

    hardikh2000, Aug 16, 2005, in forum: Python
    Replies:
    0
    Views:
    412
    hardikh2000
    Aug 16, 2005
  2. nicky boy
    Replies:
    0
    Views:
    690
    nicky boy
    Feb 7, 2009
  3. nicky boy
    Replies:
    0
    Views:
    730
    nicky boy
    Feb 7, 2009
  4. nani
    Replies:
    0
    Views:
    378
  5. chinni
    Replies:
    0
    Views:
    382
    chinni
    Nov 20, 2009
Loading...

Share This Page