Command is Respawning Too Rapidly. 3A30359F

2010.06.17 18:30

조인상 조회 수:18523

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

원문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

 

출처 : http://aixblogs.blogspot.com/2010/03/command-respawning-too-rapidly-from.html

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

Question
How can I find out what command is respawning too rapidly and filling up my wtmp file?

Answer
A common situation is that the init process is repeatedly attempting to start a failing process. The init man page describes what happens when init finds an entry is being respawned:

If the init command finds that it is continuously running an entry in

the /etc/inittab file (more than five times in 225 seconds), it assumes

that an error in the entry command string exists. It then prints an

error message to the console and logs an error in the system error log.

After the message is sent, the entry does not run for 60 seconds. If

the error continues to occur, the command will respawn the entry only

five times every 240 seconds. The init command continues to assume an

error occurred until the command does not respond five times in the

interval, or until it receives a signal from a user. The init command

logs an error for only the first occurrence of the error.
To find out what is being respawned use the steps below.

1. Check the console or console logs

Check on the console to see if init is writing an error message similar to the one below:

0 Thu Jan 22 10:16:27 EST 2009

INIT: Command is respawning too rapidly. Check for possible errors.

id:  xvfb "/usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 &"


Or search through the console log using the alog command:
# alog -t console -o | more
2. Check errpt
Next there may be an entry in the errpt output with the label "INIT_RAPID" like below:

LABEL: INIT_RAPID

IDENTIFIER: 3A30359F


Date/Time:       Wed Jan 28 10:14:17 2009

Sequence Number: 1789

Machine Id:      00CC2F914C00

Node Id:         libgng

Class:           S

Type:            TEMP

Resource Name:   init


Description

SOFTWARE PROGRAM ERROR


Probable Causes

SOFTWARE PROGRAM


User Causes

PERFORMANCE DEGRADED


Recommended Actions

REVIEW DETAILED DATA


Detail Data

SOFTWARE ERROR CODE

Command is respawning too rapidly. Check for possible errors.

COMMAND

id:  xvfb "/usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 &"

Both messages clearly identify the failing command that is being run out of the /etc/inittab file.


3. Check the wtmp file
If the warning messages are not noticed on the system console or in errpt, the next indication of he problem may be that the /var file system is filling up. This is a result of init creating an entry in /var/adm/wtmp file during each attempt to start the problem process. See below for a procedure to format the wtmp file in readable characters for diagnosis.


This technique makes use of the fwtmp utility which is part of the bos.acct fileset.

# lslpp -w /usr/sbin/acct/fwtmp

File                                    Fileset               Type

------------------------------------------------------------------

/usr/sbin/acct/fwtmp                    bos.acct              File



What's In The wtmp File


The actual content of the wtmp is not viewable, as the wtmp entries are written as binary structures (see /usr/include/utmp.h for the format). The fwtmp utility can be used to extract the contents into a human readable format.


For example we redirect the the contents of the /var/adm/wtmp file:


# /usr/sbin/acct/fwtmp < /var/adm/wtmp--> /tmp/wtmp_readable


At quick cat of the /tmp/wtmp_readable file and we find that the

file mainly consists of the following entries:

xvfb   xvfb   5 319596 0000 0000 1078170250    Mon Mar  1 11:44:10 2004

      xvfb   8 319596 0000 0001 1078170250    Mon Mar  1 11:44:10 2004

xvfb   xvfb   5 319598 0000 0000 1078170250    Mon Mar  1 11:44:10 2004

      xvfb   8 319598 0000 0001 1078170250    Mon Mar  1 11:44:10 2004

The first numeric column shows us the ut_type of entry, as defined in the utmp.h header file. The interesting types in our case are:


#define INIT_PROCESS    5    /* Process spawned by "init" */

#define LOGIN_PROCESS   6    /* A "getty" process waiting for LOGIN */

#define USER_PROCESS    7    /* A user process */

#define DEAD_PROCESS    8

In this example the "xvfb" entry is being started by init (signified by the "5" in column 3) and in the next line it's dying (ut_type = 8)


A quick check of the inittab file we find our problem:

# grep xvfb /etc/inittab

xvfb:2:respawn:/usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 &



In this case, the xvfb entry was starting an X terminal server daemon.


SOLUTION

The solution would then to resolve the command problem or change the entry in inittab from respawn to off using the chitab utility:

# chitab xvfb:2:off:'/usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 &'
In this specific case the trailing "&" sign was removed from the X Server command and it started up normally.

번호 제목 글쓴이 날짜 조회 수
공지 [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 108753
151 p5 F/W level 확인 방법 조인상 2010.05.11 13041
150 Compiling Apache or gcc/g++ for AIX 조인상 2010.05.11 13209
149 패스워드 변경된 시간이나 타임을 로그로 쌓아주는거 없나요? 조인상 2010.05.11 14719
148 solaris나 hpux 에서는 tcp 세션 clear(접속을 끊는) 시키는 명령어가 있는데 AIX는 없나요? 조인상 2010.05.11 24533
147 기존 파일시스템을 다른 VG로 옮기기 조인상 2010.05.11 16856
146 OP 판넬의 주황색 경고등 끄기 조인상 2010.05.11 32325
145 언어팩 추가 설치에 대해서... 조인상 2010.05.11 16210
144 os 패치에 관하여.. 조인상 2010.05.11 15619
143 여러가지 명령어 모음 조인상 2010.05.11 16728
142 default gateway odm에서 정보 삭제하는 방법 조인상 2010.05.11 14422
141 서버 TCP/IP 네트워크 성능테스트에 사용할 수 있는 명령어 조인상 2010.05.11 14296
140 gcc 4.11 다운 받는곳 조인상 2010.05.11 13920
139 var/adm/ras/errlog 문제.. 조인상 2010.05.11 15752
138 AIX 기본 설치 사항 조인상 2010.05.11 18618
137 AIX 환경에서 유용한 것들 조인상 2010.05.11 28228
136 AIX DISK attach에서 mount까지 조인상 2010.05.11 29218
135 Memory – Paging Space 튜닝관리 조인상 2010.05.11 17202
134 시스템 성능의 병목원인 분석 조회 조인상 2010.05.11 40817
133 AIX 메모리 사용량 측정. sar -P All 2 5 // lsps -a Unix 조인상 2010.05.11 29807
132 아답터 종류 및 슬롯위치 확인방법 조인상 2010.05.11 25889
서버에 요청 중입니다. 잠시만 기다려 주십시오...