First find out the thread to which you want to kill. Use kill -3 to kill in a normal way, if you want to do forcefully then use kill -9 . Make sure you are killing correct thread if not it creates havoc environment
kill -3 will not terminate the process, but take a ThreadDump of the instance and keep the thread running.
kill -11 will take a core dump and terminate the instance afterwards.
kill -9 will terminate the instance without further action or notice (not really recommended except no other option helps)
killl -15 or just kill is the first option to try to terminate an instance.
@Sarath:
You should try to find out why your IS is behaving like that. Therefore it is neccessary to take several thread dumps (at least 3) at 1 minute interval for further analysis.
Which version of wM are you runnig on?
From wM 9.x there is a shutdown.sh in each components bin directory.
Use this to shutdown the instance in a normal way. This will also take care of stopping the instance if it is not responding to the shutdown requst in a reasonable time.
the shutdown.sh under IS/bin directory should be called without any parameters.
It checks for files under profiles/IS/bin to check if IS is started or not.
When IS is started then one of these files (wrapper.anchor) will be deleted which in turn causes IS to shutdown.
If IS is not shutdown in time it gets killed by the wrapper automatically.
Kill can be executed from any directory your currently in with the appropriate PID.
When taking thread dumps download the nohup.out from IS/bin-directory to your local box and download samurai.jar (a Java-based Thread-Dump-Analyser) from internet.
Remove all unneccessary overhead from the nohup.out:
all lines prefixed with anything like “wrapper” except “jvm1” (the one the thread dumps are in)
the prefix “jvm1” with all extra characters like pipe-symbol.
Double click on samurai.jar and drag the modified nohup.out file into the samurai window.
In one tabe there will be the imported nohup.out in plain text, in the second tab there will be a tabular overview of the threads in the thread dumps.
Check these fro any red or orange entries indicating waiting or blocked threads.
See the legend at the bottom of the table for explanations.