I just want to take the thread dump of Analytic Engine and for that i’m using kill -3 command in Solaris box. But it doesn’t seems Generating the thread dumps in nohup.out file and the file is empty.
I even tried redirecting the output to threaddump.txt(kill -3 > threaddumps.txt
) file, and the command creates the file named ‘threaddumps.txt’ but then again the file is empty.
This is for IS threaddump and IS is running at 9612.The Kill -3 9612 command,creates a file named threaddumps.txt but it’s empty.
I’m really surprised as the basic command kill -3 is not working in our Environment.
Please let me know, if i need to look for some other files to get the threaddump.
Is there any other way to get threaddump in solaris?
Thanks in advance.
In your first thread, it was mentioned that, you need to take thread dump for Analytic engine… but the process that was listed from your grep is not AE… It is IS…
In fact, you would see two entries… one for AE and another for its corresponding wrapper.conf… In case if you would like to kill the running AE, you have to issue kill -9 command for both the process ids…
Make sure you are passing the right value of process id’s as you might be referring to threaddump of IS thinking it is AE…
And i know that i have mentioned the process to take the thread dump of IS as shown in my example. But i just wanted to let others know that we can also use jstack tool to get thread dumps. In my case kill -3 was not working so, just for an example i have taken the thread dump of IS with the help of jps and jstack.
And ps -ef | grep optimize gave me the and i have passed that to jstack to get AE threaddump.
Ok. Two more points to check with Solaris admin team for this to work…
Server should be started with nohup like below
a. nohup ./server.sh & (or)
b. ./startup.sh (which starts with nohup file).
In both the cases kill -3 will write the thread dumps into the nohup file. If server is not started with nohup, it goes into a different place to write the threaddump but I am not sure about the location.
Check with your Solaris admin why kill -3 did not create the threaddump.