Chinaunix首页 | 论坛 | 博客
  • 博客访问: 994156
  • 博文数量: 200
  • 博客积分: 5011
  • 博客等级: 大校
  • 技术积分: 2479
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-27 15:07
文章分类

全部博文(200)

文章存档

2009年(12)

2008年(190)

我的朋友

分类:

2008-08-05 01:45:11

    我们的linux经常会挂掉,可是并不是说我们不能看到任何信息,我们可以在/var/log/messages里面看到一些信息。
    如果有个process haung掉了,那么我们可以通过Alt-ScrollLock followed by Ctrl-ScrollLock来让系统将当前hang掉的进程以及其他进程的backtrace写入/var/log/messages,当然前提是我们的键盘还可以工作。此外还得满足:
  1. The kernel that is running on the system must be built with CONFIG_MAGIC_SYS-REQ enabled. The system must also be in text mode. Pressing Ctrl-Alt-F1 places the system in text mode. Pressing Ctrl-Alt-F7 places the system back in X Window.

  2. While in text mode, press Alt-ScrollLock followed by Ctrl-ScrollLock. These magic keystrokes give you a stack trace of the currently running processes and all processes, respectively.

  3. Look in the system's /var/log/messages file for the back trace. If everything is set up correctly, the system should have converted the symbolic kernel addresses.

 
阅读(2488) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-04-25 10:27:45

wow gold:wow gold,wow gold website:wow gold tks

chinaunix网友2009-04-25 10:27:03

wow gold:wow gold,wow gold website:wow gold tks