Why does Linux Crash? -- Linux general technology-Linux technology and application information. For details, refer to the following section. When someone encounters a Linux Crash, it is too big. I will share my experience with you in order to give you some suggestions.
In addition to troubleshooting hardware faults, firmware versions, BIOS, and other issues, Linux crashes may encounter the following situations:
1. If there are messy characters on the console when your Linux server crashes. Congratulations, this situation is called oops. It is usually caused by exceptions in Linux kernel. You can use the oops message to find the error.
2. If your machine is dead, the problem will be troublesome. In this case, a deadlock occurs in the Kernel. The Kernel does not know that it is deadlocked, so it does not show any Doon on the screen. If you are lucky, the Kernel may be able to respond to the interruption. However, you cannot proceed further.
3. Strictly speaking, the third case is not a crash. The phenomenon is as follows: after the command is entered, the command cannot return any results, but the console may have a corresponding effect on the carriage return. However, the command cannot end, and no output results will be generated. However, you can switch to the next console and continue to enter the command, but the command is not output after it is entered. There are many possibilities for this situation. Generally, system calls of an application do not return for a long time or cannot meet the requirements of the application.
In the above three cases, system log does not play a major role. Generally, logs are not recorded. Therefore, only the Debug tool of Kernel can be used.
However, Linus is rather harsh. People say that the Kernel does not need the Debug tool. Therefore, the code in kernel.org does not have a debug tool. However, most of the current releases of the kernel are equipped with the debug tool, and the tool is different.
Generally, all kernel debug operations need to collect vmcore when a fault occurs, that is, dumping memory when the fault occurs. (Remember that a number exists between 1% and 100% and the dump. sys file on drive C appears on the Windows blue screen. Do you know what to do now? ) And then perform analysis. Maybe you will worry about the Linux Crash and how to dump memory. Don't worry about it. There are several ways to keep the Kernel. One of them is NMI.
So how to dump memory? Here we use REDHAT as an example. Both RHEL3 and RHEL4 use netdump as the collection tool, and RHEL5 uses kdump as the collection tool.
After the collection is complete, you can analyze the vmcore. See the following article: http://people.redhat.com/anderson/crash_whitepaper/
However, for administrators, any debug tool requires code development experience to be used smoothly.
Finally, I recently saw someone in the altar who was skeptical about the application when they saw a crash. This is a good spirit of self-criticism and must be carried forward vigorously.
So Will scripts and applications cause crashes? Of course, but the problem still lies in the Kernel. For example, if an application writes a file, the system may suspend the file system code in the kernel.
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