- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- core files with $kill -3 pid
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
тАО05-19-2006 10:58 AM
тАО05-19-2006 10:58 AM
The command $kill -3 pid (of java process) produces java core dump files.
If I execute $kill -3 (with the pid of some other application) then will core files would get produced ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 02:55 PM
тАО05-19-2006 02:55 PM
Re: core files with $kill -3 pid
Signal 3 is SIGQUIT. It produces a core dump on abort.
3 SIGQUIT Quit Terminate with core dump; can be trapped
Check "man kill" for more information,
http://docs.hp.com/en/B2355-60127/kill.1.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 02:59 PM
тАО05-19-2006 02:59 PM
Re: core files with $kill -3 pid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2006 07:11 AM
тАО05-20-2006 07:11 AM
Re: core files with $kill -3 pid
So the kill -3 will normally produce a core dump of the process running as its designed, unless the signal handler has been changed.
Quite useful for any process that is misbehaving.
I can see reasons why some application vendors would try and avoid core dumps with use of signal handling.
You will not get core dumps if you have disabled core dumps in /etc/profile or .profile of the user or script that starts the process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2006 11:12 AM
тАО05-20-2006 11:12 AM
Re: core files with $kill -3 pid
Is taking core dump affects applications or operating system ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2006 01:18 PM
тАО05-20-2006 01:18 PM
Re: core files with $kill -3 pid
However, kill -3 may be the only way a programmer can find out why a process is not working correctly, so it may be required. Now kill -3 (when it results in a core file) is unique in that the process memory area is copied to a disk file. That doesn't sound like much but it actually creates a heavy load on the system due to the tasks needed to rearrange memory. This causes spinlocks which are short pauses where all processing stops until the cire dump is complete. That may be the reason you heard that it's not a good idea to have core dumps on a running system.
Now that doesn't mean you should ban the practice. As with any heavy load on the system (like find / or du /), you don't do it very often. But if a core dump is the only way to discover the programming problem, then you'll have to do it. Note that the core dump does not introduce any instability in the system...it just slows down for a few seconds.
As Steven mentioned, you can limit core dumps as to size including zero (which prevents any core dump). The ulimit command in the shell can limit the maximum size of a core dump. Note that ulimit -c onloy works with the POSIX shell or a recently patched version of ksh.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2006 04:00 PM
тАО05-20-2006 04:00 PM
Re: core files with $kill -3 pid
-Shiv