- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Core Size
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
тАО09-09-2003 06:03 AM
тАО09-09-2003 06:03 AM
Core Size
I've seen some messages about how to minimize the size of a core file...
I have the same problem, a core is generated
on my platform but is very huge ! (around 700 Mb) if I'm redirecting this core with those commands :
ln -s /dev/null core
or ulimit -c 0
can I have a problem of swap or any memory problem ?
I mean if my core is generated in RAM and not
written in a filesystem is there an impact for my platform ???
Thanks for reply,
Jean-Remi QUIRICONI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:08 AM
тАО09-09-2003 06:08 AM
Re: Core Size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:10 AM
тАО09-09-2003 06:10 AM
Re: Core Size
If I understand your question correctly, then the answer is no. Because the core file IS what was in memory when the process was dumped.
So it was already there in memory. Now the system is writing that image to disk due to a failure or a direct request to dump.
When you redirect core to /dev/null it simply vanishes into the ether. It does not go back to memory nor the disk.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:13 AM
тАО09-09-2003 06:13 AM
Re: Core Size
(as root)
# cd /$DIR
# touch core
# chmod 444 core
Of course, if core files *do* represent an issue that should be dealt with, so this is just a quick-dirty way of dealing with a larger issue.
Hope this is what you were looking for ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:14 AM
тАО09-09-2003 06:14 AM
Re: Core Size
Your approach as noted above should cause no issues except that you cant fix the problem.
If you dont know where the core is coming from, you can let it core dump once and type 'file core' to find out.
Another alternative for limiting the size of the "core" file is to simply create a sub-directory named "core".
This is my method of choice.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:23 AM
тАО09-09-2003 06:23 AM
Re: Core Size
in fact I know the problem of the core, but I need to analyse other files generated during the core (some log files).
but my core file is generating a file system full, so I need to decrease it to investigate.
Jean-Remi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:23 AM
тАО09-09-2003 06:23 AM
Re: Core Size
strings core|more
will give a hint as to what program generated the core dump in the first place - no guarantees....but this may be a logical first step towards troubleshooting this real issue.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 06:30 AM
тАО09-09-2003 06:30 AM
Re: Core Size
You can mitigate the problem by changing the working directory to a dir with enough free space *before* starting the offending process.
Can do it either manually:
cd /new/larger/dir
/opt/your/process
Or virtually:
export PWD=/new_larger_dir
/opt/your/process
Because core is dumped to the $PWD environment variable value, you can force the dump to wherever you wish by explicitly setting it.
HTH,
Jeff