- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Killing a process by kill -3; Will it impact runni...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:30 PM
тАО01-29-2009 01:30 PM
Killing a process by kill -3; Will it impact running production process ?
We have WebLogic 9.2 running on HPUX.
It has a weblogic domain running 4 instances in production.
We want to take thread dump by using "kill -3 java process id".
I had read somewhere that killing a process by "kill -3 java pid" stops the java process for a moment and probably might impact production applicaton.
My question is: Should we avoid taking thread dump by killing the process ?
What is other best option ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:46 PM
тАО01-29-2009 01:46 PM
Re: Killing a process by kill -3; Will it impact running production process ?
A 'kill -3' is otherwise known as a 'kill -QUIT'. Whether or not the process receiving this signal is written to handle it will determine what happens when you send the signal. By default, this will terminate a process.
If you want a core dump of the process, use:
# kill -6
...which is:
# kill -ABRT
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 04:17 PM
тАО01-29-2009 04:17 PM
Re: Killing a process by kill -3; Will it impact running production process ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 04:24 PM
тАО01-29-2009 04:24 PM
Re: Killing a process by kill -3; Will it impact running production process ?
> Looks like core dump is binary file and needs some debugger tool to analyze.
Yes, that is correct. If you take a core dump, the idea is that either you or someone else wants to analyze it.
http://docs.hp.com/en/JAVADEVTOOLS/sdk.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 07:52 PM
тАО01-29-2009 07:52 PM
Re: Killing a process by kill -3; Will it impact running production process ?
If you want a thread dump, that kill -QUIT is what you need to do.
Why do you need that thread dump? Something hanging? You need to monitor performance?
Here are some threads, including and old one of yours:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1068780
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1017367
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=945279
http://docs.hp.com/en/5992-1918/ch01s02.html
http://docs.hp.com/en/5992-1918/ch01s01.html
>I want to take thread dump of java process. Are core dump different than thread dump?
You already asked that 3+ years ago.
>JRF: If you take a core dump, the idea is that either you or someone else wants to analyze it.
Right. You could also use gdb. There are ways to have it at least dump the java frames.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 08:19 PM
тАО01-29-2009 08:19 PM
Re: Killing a process by kill -3; Will it impact running production process ?
I had read somewhere that killing a process by "kill -3 java pid" stops the java process for a moment and probably might impact production applicaton.
Will thread impact running production environment ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 09:09 PM
тАО01-29-2009 09:09 PM
Re: Killing a process by kill -3; Will it impact running production process ?
This seems reasonable.
>Will thread impact running production environment?
It depends. If you have a timeout set so low that you exceed it, you may get errors.
If you have any more questions about Java and you have a support contract, you'll need to contact the Response Center.
One more URL, Java Troubleshooting Guide for HP-UX Systems:
http://h18012.www1.hp.com/java/support/JTGv2.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 03:02 AM
тАО01-30-2009 03:02 AM
Re: Killing a process by kill -3; Will it impact running production process ?
In the weblogic admin console, Select a weblogic server, click on monitoring, click on threads and then dump thread stacks.
If you need more information on this you should go the the BEA website and look at the weblogic documentation.
http://edocs.bea.com/common/docs92/index.html