Reputation: 620
My company is utilizing the coredump functionality in Linux (CentOS specifically) to track down some hard to find issues. Unfortunately, we have a bunch of small VMs running with limited HD space and the full core dumps are causing issues because of the large amount of space taken up by the heaps.
Is it possible to just have Linux dump the callstack, threads and local variables when a segmentation fault occurs? I tried just limiting the dumps to 50 megs, but it doesn't seem like all the desired details are in that first 50 megabytes (ulimit -c 51200). We're okay truncating the heap like that, but I haven't been able to find out what size would work.
I know it's possible to write out your own callstack when desired with some extra code, but we're at the point where we're wrapping up and that'd be a hard sell for these last couple issues we're running into.
Upvotes: 1
Views: 1076