sun's longitude:241 42 51.31 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
1657 번 글의 답장글: Re: Re: Re: Re: Re: 산이님 조언부탁 드립니다...
글쓴이: 산이 [홈페이지] 글쓴날: 2003년 09월 04일 22:55:13 목(저녁) 조회: 1124

[무식이..]님이 남기신 글:

>
>정신건강에 안좋다는걸 알면서도...
>
>top 명령어 올려놓고..넷마블
 고스톱을 치면서...
>
>loadaverage를 보는순간..
>
>1.5  2.4  3.8 ...막 올라가는겁니다..ㅡ.ㅡa

>
>너무 놀라서..
>
>아파치 재 구동을 하고 w 명령어를 쳐 봤는데..로드는
 계속 높더라구요..
>
>위와같은 짓을 두번 정도 더하고..
>
>안되겠다 싶어서..killall -9 httpd (이렇게 써도 되는건지 지금도

>
>정신이 없네요...) 하고 /usr/local/apache/bin/apachectl start를

>
>해 줬더니..로드가
 다운되면서..아파치가
 진정을 하더군요..
>
>20분 안에 똑같은 상황이 또 연출 되어..똑같은 조치를 취한
상태 입니다..
>
>211.227.43.146 - - [04/Sep/2003:00:41:30 +0900] "GET /main.php HTTP/1.1"
200 16273
>211.227.43.146 - - [04/Sep/2003:00:41:30 +0900] "GET
/sarangbi_bgm/sarangbi_bgm.php HTTP/1.1" 200 27346
>211.227.43.146 - - [04/Sep/2003:00:41:30 +0900] "GET
/sarangbi_bgm/sarangbi_bgm.js HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:30 +0900] "GET /style.css HTTP/1.1"
304 -
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /fonts/jung10.mwf
HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /bgimg/bg.gif
HTTP/1.1" 200 86
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /bar/menubar.gif
HTTP/1.1" 200 255
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET
/ultra/etc/img/log_mem.gif HTTP/1.1" 200 535
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /flash/joongang1.swf
HTTP/1.1" 200 21319
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET
/ultra/etc/img/log_join.gif HTTP/1.1" 200 156
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET
/ultra/etc/img/log_login.gif HTTP/1.1" 200 160
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /flash/joongang1.swf
HTTP/1.1" 206 29395
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /bgimg/13132.gif
HTTP/1.1" 200 8311
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /banner/korean.gif
HTTP/1.1" 200 1257
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /banner/two.gif
HTTP/1.1" 200 3648
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /banner/war.gif
HTTP/1.1" 200 11636
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET
/ultra/etc/img/top_left.gif HTTP/1.1" 200 72
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET
/ultra/etc/img/top_right.gif HTTP/1.1" 200 189
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/8.gif
HTTP/1.1" 200 78157
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/9.gif
HTTP/1.1" 200 108154
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/7.gif
HTTP/1.1" 200 74108
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/6.gif
HTTP/1.1" 200 71810
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/5.gif
HTTP/1.1" 200 78051
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/3.gif
HTTP/1.1" 200 73638
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/4.gif
HTTP/1.1" 200 95457211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET
/ultra/data/8/data/14.gif HTTP/1.1" 200 39412
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/data/8/data/2.gif
HTTP/1.1" 200 97758211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/bgimg/c.gif HTTP/1.1" 200 4174
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/data/8/data/13.gif
HTTP/1.1" 200 74647211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/back.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/etc/img/top.gif
HTTP/1.1" 200 56211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/stop.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/forward.gif HTTP/1.1" 304 -211.227.43.146 - -
[04/Sep/2003:00:41:34 +0900] "GET /sarangbi_bgm/skin/pink/button/pause.gif
HTTP/1.1" 304 -211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/volume_up.gif HTTP/1.1" 304 -211.227.43.146 - -
[04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/volume_down.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/random.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/one_play.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/sound_on.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/list.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/admin.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET /banner/war.gif
HTTP/1.1" 200 11636
>211.227.43.146 - - [04/Sep/2003:00:41:31 +0900] "GET
/ultra/etc/img/top_left.gif HTTP/1.1" 200 72
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET
/ultra/etc/img/top_right.gif HTTP/1.1" 200 189
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/8.gif
HTTP/1.1" 200 78157
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/9.gif
HTTP/1.1" 200 108154
>211.227.43.146 - - [04/Sep/2003:00:41:32 +0900] "GET /ultra/data/8/data/7.gif
HTTP/1.1" 200 74108
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/6.gif
HTTP/1.1" 200 71810
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/5.gif
HTTP/1.1" 200 78051
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/3.gif
HTTP/1.1" 200 73638
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/4.gif
HTTP/1.1" 200 95457
>211.227.43.146 - - [04/Sep/2003:00:41:33 +0900] "GET /ultra/data/8/data/14.gif
HTTP/1.1" 200 39412
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/data/8/data/2.gif
HTTP/1.1" 200 97758
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /bgimg/c.gif
HTTP/1.1" 200 4174
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/data/8/data/13.gif
HTTP/1.1" 200 74647
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/back.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET /ultra/etc/img/top.gif
HTTP/1.1" 200 56
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/stop.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/forward.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/pause.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/volume_up.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/volume_down.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/random.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/one_play.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/sound_on.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/list.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/admin.gif HTTP/1.1" 304 -
>211.227.43.146 - - [04/Sep/2003:00:41:34 +0900] "GET
/sarangbi_bgm/skin/pink/button/equal.gif HTTP/1.1" 304 -
>
>첫번째 상황전의 access로그 입니다..( 저런것이..서너개가
 더 있습니다.)
>
>혹시나 저 로그가 힌트가 될줄 알았는데...두번째
 상황 발생 전에는 저런 로그가 없더군요..
>
>요지는 갑작스런 로드의 증가로 아파치가 재구실을
못하다가..
>
>결국 다운이 되는거 같습니다...참고로..로드가
 갑자기 올라갈때
>
>  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>14226 nobody    10   0  6220 6220  4592 S     99.9  0.6   0:01 httpd
>
>%cpu 가..99.9 가 되더군요... (%MEM 0.6은 정확하지
않네요..)
>
>오늘 잠은 다 잔거 같습니다...
>
>조언 부탁 드립니다.. 

========================================

특정 스크립트 파일에서 엄청난 CPU 를 사용하는 계산이
들어있지 않나 싶네요..
아니면 무한루프가 돌던지...

위의 로그 역시 판별이 어렵군요..

많은 시간이 소비되는 스크립트 찾는 방법:

LogFormat "%h %t (%T) \"%r\" %>s %b" stime

SetEnvIfNoCase Request_URI "\.(php3|php|html|htm|cgi|pl|shtml)$"
check_stime

CustomLog /usr/local/apache/logs/stime_log combined env=check_stime


이렇게 설정하고 다시 아파치를 시작합니다.

(%T) 는 %b bytes 를 클라이언트에게
 보내는 시간을 초단위로
기록하게 하는 방법입니다.

대부분 %T 는 0 으로 기록될겁니다.

0 보다 큰 즉, 1 이상되는 스크립트를 쉽게 찾을 수 있겠지요.

 
이전글 : Re: Re: Re: Re: 산이님 조언부탁 드립니다...
다음글 : proftp가 xinetd모드로 잘 안됩니다.  
 from 61.254.75.40
JS(Redhands)Board 0.4 +@

Re: Re: Re: Re: 산이님 조언부탁 드립니다... proftp가 xinetd모드로 잘 안됩니다.
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds