- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Using ulimit to get corefiles (points!)
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
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-06-2009 12:30 AM
тАО05-06-2009 12:30 AM
In the past I have used ulimit to get crashing processes to write corefiles:
ulimit -H unlimited
ulimit -Hc unlimited
ulimit -S unlimited
ulimit -Sc unlimited
But this is only (?) for processes started from the same shell after the ulimit commands have been started.
Is there a good way to be sure that I always get corefiles, from any process, also after reboot? Solaris and HP-UX 11.31 have coreadm but it seems this is not available for Linux? I am using RHEL5u1 on x86.
The first seven truly helpful answers will be generously rewarded with points!
Thanks, Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 03:11 AM
тАО05-06-2009 03:11 AM
SolutionHow to enable core dumps on *everything* on RHEL 5.*:
http://kbase.redhat.com/faq/docs/DOC-5353
How to enable core dumps on Apache webserver (taking care that the dumps are stored in a safe location):
http://kbase.redhat.com/faq/docs/DOC-1468
For more info on kernel.core_pattern sysctl setting, please see:
http://www.kernel.org/doc/Documentation/sysctl/kernel.txt
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 03:42 AM
тАО05-06-2009 03:42 AM
Re: Using ulimit to get corefiles (points!)
By default you get core files.
ulimit -Sc 0 to prevent core files.
Then override it in the applications start up script or user profile.
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-06-2009 04:01 AM
тАО05-06-2009 04:01 AM
Re: Using ulimit to get corefiles (points!)
in RHEL (and most modern Linux distributions) the "factory default" is no corefiles. It may be that the kernel default is as you said, but the startup scripts will override the kernel defaults pretty thoroughly.
This is another case of "beginner-friendliness".
As the default is no core files, those that don't know what core files are and what to do with them won't have to wonder why a crashing Java server application suddenly ate a gigabyte of disk space. (I've seen that on HP-UX, and educated the application guys shortly afterwards :-)
Those that know what to do with core files, certainly should also know how to enable them when necessary (as Christian obviously does). And if the basic policy needs to be changed, the Red Hat Knowledge Base link in my first reply covers that.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 05:23 AM
тАО05-06-2009 05:23 AM
Re: Using ulimit to get corefiles (points!)
Thanks Steve for your input. I did not check if it was the default but I did not find any corefiles so far and I was wondering if that was maybe suspicious (testing some software).
After making the recommended changes I did a simple test and got my corefile, thank you so much!
Kind regards, Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 10:34 PM
тАО05-06-2009 10:34 PM
Re: Using ulimit to get corefiles (points!)
if and when specificly needed, it can be turned on quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 10:36 PM
тАО05-06-2009 10:36 PM
Re: Using ulimit to get corefiles (points!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 06:54 AM
тАО05-07-2009 06:54 AM
Re: Using ulimit to get corefiles (points!)
Sorry my testing was not yet thorough enough. When I kill a daemon process with kill -11 I get NO COREDUMP! I sent RedHat feedback to their webpage, don't know if they will send me a reply but I told them the information is wrong (at least partially wrong, at least as far as some daemon processes are concerned).
If you have any helpful hints that would be very helpful for me, otherwise I will see if I am able to get support from RedHat directly.
Thanks, Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 07:07 AM
тАО05-07-2009 07:07 AM
Re: Using ulimit to get corefiles (points!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 08:48 AM
тАО05-07-2009 08:48 AM