Win32: Signal a SIGBREAK to a detached java process

Discussion in 'Java' started by Bill Laird, Sep 5, 2003.

  1. Bill Laird

    Bill Laird Guest

    Hi. I'm sure I'm not the only one who ever wanted to do this, but here
    is my scenerio:

    On Windoze, I have a detached java process that is deadlocked. I want
    to do a SIGBREAK to get the VM to do a thread dump. STDERR and STDOUT
    for this process were redirected to other streams at startup, so not
    having a tty for the VM to dump to isn't a problem.

    In lieu of doing ctl-c from the shell that the java process is running
    (remember, it's detached) - is there a way to signal the process with
    SIGBREAK via Win32 or some other mechanism? I'm specifically looking
    for something that is already written. I've tried the GNU kill from
    cygwin, and that doesn't seem to have SIGBREAK as one of the signals.


    Thanks,
    Bill
    Bill Laird, Sep 5, 2003
    #1
    1. Advertising

  2. If you are using Windows NT/2000/XP and jdk 1.3/1.4 try this:
    http://www.mycgiserver.com/~tmitevski/adaptj/
    It works on windows services too.

    Alberto

    (Bill Laird) wrote in message news:<>...
    > Hi. I'm sure I'm not the only one who ever wanted to do this, but here
    > is my scenerio:
    >
    > On Windoze, I have a detached java process that is deadlocked. I want
    > to do a SIGBREAK to get the VM to do a thread dump. STDERR and STDOUT
    > for this process were redirected to other streams at startup, so not
    > having a tty for the VM to dump to isn't a problem.
    >
    > In lieu of doing ctl-c from the shell that the java process is running
    > (remember, it's detached) - is there a way to signal the process with
    > SIGBREAK via Win32 or some other mechanism? I'm specifically looking
    > for something that is already written. I've tried the GNU kill from
    > cygwin, and that doesn't seem to have SIGBREAK as one of the signals.
    >
    >
    > Thanks,
    > Bill
    Alberto Morales, Sep 5, 2003
    #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. The Dark Seraph

    Detached interpreter threads

    The Dark Seraph, May 27, 2004, in forum: Python
    Replies:
    0
    Views:
    295
    The Dark Seraph
    May 27, 2004
  2. Robin Becker

    detached subprocess

    Robin Becker, May 23, 2005, in forum: Python
    Replies:
    0
    Views:
    377
    Robin Becker
    May 23, 2005
  3. Replies:
    2
    Views:
    939
  4. Edmond Kachale
    Replies:
    2
    Views:
    130
    Dave Howell
    Sep 22, 2010
  5. Moshe Katz
    Replies:
    2
    Views:
    133
    Moshe Katz
    May 2, 2004
Loading...

Share This Page