Solaris and Linux specify naming rules for coredump files
Source: Internet
Author: User
Solaris and Linux specify naming rules for the coredump file-general Linux technology-Linux programming and kernel information. The following is a detailed description. Core files are the little goblin like gafei. Programmers are afraid of seeing it at ordinary times, but core files can be analyzed to obtain information to solve the problem. In general, the file name of the core dump is a simple core. If the file is dumped multiple times in the same directory, only one core file is saved. By specifying naming rules, this article stores multiple little fairies to provide benefits for programmers.
First look at Solaris. There is no doubt that Solaris is the best system in the world. This system provides the coreadm (1 M) command for core, which is simple, practical, and powerful. To retain multiple cores, one sentence:
Coreadm-I core. % f. % t
For more information about the parameters, see the man manual.
Look at Linux again. If the system kernel is new enough (2.5 +), you can see the core_pattern and core_uses_pid files in/proc/sys/kernel. The usage is also very simple. Let's take a look at man 5 core.
Edit/etc/sysctl. conf and add a line: kernel. core_uses_pid = 1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service