- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Custom coredump file
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
Forums
Discussions
Discussions
Discussions
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
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
09-23-2007 08:13 PM
09-23-2007 08:13 PM
I've question aboute custom generated core files. So, I want to make a convention name to the core files (generated from specific application which is running with a specific user) such as
core.process_name.process_id
and to set a limit of 1G for these core files.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2007 08:50 PM
09-23-2007 08:50 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 03:15 PM
09-24-2007 03:15 PM
Re: Custom coredump file
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1163668
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2007 12:38 AM
09-25-2007 12:38 AM
Re: Custom coredump file
Already available for 11.11, 11.23 and 11.31. As mentioned, 11.31 has coreadm, but for 11.11 and 11.23, there is a secret (well, not well documented) way to do this. The kernel parameter core_addpid will do exactly what you want, that is, every core file will have the PID added to the end of the filename. Here is how to do it:
11.11
echo "core_addpid/W 1" | adb -o -w /stand/vmunix /dev/kmem
11.23
echo "core_addpid/W 1" | adb -k -w /stand/vmunix /dev/kmem
This is not settable in SAM (hence, secret, undocumented) but you can set the value with a start-script so it always exists for your system. (there is no core_addpid location prior to 11.11) Note that you can't change the main filename (core), but you can append the PID to each core dump.
And as mentioned, ulimit -C can limit the core file size. Lesser known are the -H and -S options to ulimit -c. By default, ulimit -c sets the maximum core file size. Once you lower it, it cannot be raised in the current environment. So, ulmit -c 1000 is the same as ulimit -Hc 1000 and ulimit -HC 2000 will fail because it cannot be raised. But use the -S option and now you can change the limit at any time during your session.
A common technique is to use ulimit -Sc 0 in /etc/profile so that no one can create a core file unless they specifically increase the value. Then developers can set ulimit -Sc 1000000 (or whatever) in their .profile or just pick a core dump size for each test.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 08:22 PM
09-27-2007 08:22 PM