서버다운시.. 원인을 찿는 방법을 어떻게 접근해야 할
글쓴이: shean0 / 작성시간: 화, 2004/06/29 - 10:01오전
아파치/톰캣으로 홈페이지를 서비스하는 리눅스가 있는데요.
어제 갑자기 다운되었습니다
일단 급하게 다시 띄우기는 했지만...
ps -ef 로 보니 아래와 같은 defunc이 있는데.. 이거 어떻게 봐야 하는것인지?
root 14715 635 0 09:02 ? 00:00:00 [supervise <defunct>] root 14716 745 0 09:02 ? 00:00:00 [supervise <defunct>] root 14717 745 0 09:02 ? 00:00:00 [supervise <defunct>] root 14718 745 0 09:02 ? 00:00:00 [supervise <defunct>] root 14719 745 0 09:02 ? 00:00:00 [supervise <defunct>] root 14728 763 0 09:02 ? 00:00:00 [run <defunct>] [root@mycom root]# uname -a Linux mycom 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
이런 에러상황에 대한 책이나.. 사이트 없나요?
체계적으로.. 뭘 봐야할지.. message 를 찿아서 보고는 있지만..
너무 광범위한 질문이고.. 깊이도 어떻게 조언해 주실지..난감하겠지만서두.
모든 조언이.. 제게는 유익할것입니다 ..꾸벅..
Quote:
[root@rm4it root]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 08:16 ? 00:00:03 init [3]
root 2 1 0 08:16 ? 00:00:00 [keventd]
root 3 0 0 08:16 ? 00:00:00 [ksoftirqd_CPU0]
root 4 0 0 08:16 ? 00:00:00 [kswapd]
root 5 0 0 08:16 ? 00:00:00 [kreclaimd]
root 6 0 0 08:16 ? 00:00:00 [bdflush]
root 7 0 0 08:16 ? 00:00:00 [kupdated]
root 8 1 0 08:16 ? 00:00:00 [mdrecoveryd]
root 16 1 0 08:16 ? 00:00:00 [kjournald]
root 87 1 0 08:16 ? 00:00:00 [khubd]
root 179 1 0 08:17 ? 00:00:00 [kjournald]
root 533 1 0 08:17 ? 00:00:00 syslogd -m 0
root 538 1 0 08:17 ? 00:00:00 klogd -2
named 585 1 0 08:17 ? 00:00:00 named -u named
named 587 585 0 08:17 ? 00:00:00 named -u named
named 588 587 0 08:17 ? 00:00:00 named -u named
named 589 587 0 08:17 ? 00:00:00 named -u named
named 590 587 0 08:17 ? 00:00:00 named -u named
root 607 1 0 08:17 ? 00:00:00 /usr/sbin/sshd
root 623 1 0 08:17 ? 00:00:00 xinetd -stayalive -reuse -pidfile /var/run/xi
root 635 1 0 08:17 ? 00:00:00 svscan
vpopmail 650 1 0 08:17 ? 00:00:00 tcpserver -u 511 -g 506 0 pop-3 /var/qmail/bi
root 670 1 0 08:17 ? 00:00:00 crond
root 680 1 0 08:17 ? 00:00:00 /bin/sh /usr/local/mysql/bin/safe_mysqld
mysql 701 680 0 08:17 ? 00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/us
root 731 1 0 08:17 tty1 00:00:00 /sbin/mingetty tty1
root 732 1 0 08:17 tty2 00:00:00 /sbin/mingetty tty2
root 733 1 0 08:17 tty3 00:00:00 /sbin/mingetty tty3
root 734 1 0 08:17 tty4 00:00:00 /sbin/mingetty tty4
root 735 1 0 08:17 tty5 00:00:00 /sbin/mingetty tty5
root 736 1 0 08:17 tty6 00:00:00 /sbin/mingetty tty6
root 737 1 0 08:17 ? 00:00:00 /bin/sh /command/svscanboot
mysql 743 701 0 08:17 ? 00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/us
mysql 744 743 0 08:17 ? 00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/us
root 745 737 0 08:17 ? 00:00:00 svscan /service
root 746 737 0 08:17 ? 00:00:00 readproctitle service errors: ...temporary fa
root 751 745 0 08:17 ? 00:00:00 supervise qmail-smtpd
vpopmail 754 751 0 08:17 ? 00:00:00 /usr/local/bin/tcpserver -vRHl 0 -x /home/vpo
root 760 635 0 08:17 ? 00:00:00 supervise log
root 762 635 0 08:17 ? 00:00:00 supervise log
root 763 635 0 08:17 ? 00:00:00 supervise vpop
qmaill 764 760 0 08:17 ? 00:00:00 /usr/local/bin/multilog t /var/log/qmail
qmaill 765 762 0 08:17 ? 00:00:00 /usr/local/bin/multilog t /var/log/qmail/smtp
root 1039 635 0 08:18 ? 00:00:00 supervise qmail-send
qmails 1041 1039 0 08:18 ? 00:00:00 qmail-send
root 1042 1041 0 08:18 ? 00:00:00 qmail-lspawn ./Maildir/
qmailr 1043 1041 0 08:18 ? 00:00:00 qmail-rspawn
qmailq 1044 1041 0 08:18 ? 00:00:00 qmail-clean
vpopmail 6365 754 0 08:35 ? 00:00:00 /usr/local/bin/tcpserver -vRHl 0 -x /home/vpo
root 12773 607 0 08:57 ? 00:00:00 /usr/sbin/sshd
markj 12795 12773 0 08:57 pts/0 00:00:00 -bash
root 12849 12795 0 08:57 pts/0 00:00:00 su -
root 12854 12849 0 08:57 pts/0 00:00:00 -bash
root 14044 607 0 09:00 ? 00:00:00 /usr/sbin/sshd
sean 14058 14044 0 09:00 pts/1 00:00:00 -bash
root 14341 1 8 09:01 pts/0 00:00:04 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14342 14341 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14343 14342 3 09:01 pts/0 00:00:01 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14344 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14345 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14346 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14347 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14348 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14349 14342 3 09:01 pts/0 00:00:02 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14368 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14378 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14379 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14381 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14382 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14387 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14388 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14389 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14390 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14391 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14392 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14397 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14403 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14404 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14409 14058 0 09:01 pts/1 00:00:00 su -
root 14410 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14411 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14412 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14413 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14414 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14415 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14416 14342 1 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14417 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14418 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14419 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14420 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14421 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14422 14342 0 09:01 pts/0 00:00:00 /usr/local/j2sdk1.4.0/bin/java -Djava.endorse
root 14439 14409 0 09:01 pts/1 00:00:00 -bash
mysql 14509 743 0 09:01 ? 00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/us
root 14572 1 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14573 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14574 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14575 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14576 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14577 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14608 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14613 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
nobody 14614 14572 0 09:02 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
root 14715 635 0 09:02 ? 00:00:00 [supervise <defunct>]
root 14716 745 0 09:02 ? 00:00:00 [supervise <defunct>]
root 14717 745 0 09:02 ? 00:00:00 [supervise <defunct>]
root 14718 745 0 09:02 ? 00:00:00 [supervise <defunct>]
root 14719 745 0 09:02 ? 00:00:00 [supervise <defunct>]
root 14728 763 0 09:02 ? 00:00:00 [run <defunct>]
root 14732 14439 0 09:02 pts/1 00:00:00 ps -ef
Forums:
시스템디버깅은 왕도가 없는거 같습니다.여러가지 원인이 생길만한 하
시스템디버깅은 왕도가 없는거 같습니다.
여러가지 원인이 생길만한 하나하나를(심지어 아닐것 같은것들까지도) 다 살펴봐야 하니까요.
참고만하세요..
supervise는 qmail관련 사항인듯 보이내요..
일단은 qmail에서 가장 많은 실수인 스크립트파일들을
살펴보시고.. 스크립트 파일들은 자동으로 올리지 마시고 하나하나 손으로 실행해보세요.
스크립트 실행중에 에러가 발생하는 경우가 종종있습니다.
댓글 달기