Announcement

Collapse
No announcement yet.

How to kill java application which does not want to?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to kill java application which does not want to?

    After a java application hung I tried to kill it using its PID. System did not kill it either by System Monitor or kill command or by sending TERM or KILL signal. How to kill it effectively? Application is of jar type called by shell script or manually from command line.

    #2
    Re: How to kill java application which does not want to?

    that is strange......are you sure you had the right PID as some times you will have several PID's for 1 thing if it has child processes ....killing the child processes dosent kill the parent and so it may get respond .

    try the ctrl+alt+esc and place the scull and crossbones on the window and click it.

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Re: How to kill java application which does not want to?

      That helped! Only the scull.
      No other killing didn't... which is being strange. For sure, I gave the right PID while killing. When app started by .sh script I could kill its parent process (bash) but not the child itself.

      Comment


        #4
        Re: How to kill java application which does not want to?

        if it was owned by root you would have to "sudo kill" it......just a thought.

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Re: How to kill java application which does not want to?

          No, it was owned by me so kill should kill it, IMO.
          I wonder what's the difference between kill and scull, from system point of view.

          Comment


            #6
            Re: How to kill java application which does not want to?

            Code:
            kill -9 <pid>
            should kill a java program as expected. If you omit the -9 then the default signal is SIGTERM, which is hooked by the jre so the process will not die.

            Comment

            Working...
            X