Skip to content
조회 수 2729 추천 수 0 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

아파치 캐시 설정 이후 잦은 아파치 자동멈춤 현상이 발생되어 원인분석을 해봐야 겠다.

우선 php.ini 의 OPCACHE 캐시설정

;extension=php_opcache.dll
zend_extension=php_opcache.dll


; Zend OPCache 활성화 여부 결정. 
opcache.enable=1 
  
; PHP CLI 버전에서 Zend OPCache 활성화 여부 결정. 
opcache.enable_cli=0 
  
; OPCache 공유 메모리 저장소 사이즈 
;원본 : opcache.memory_consumption=64 
opcache.memory_consumption=128
  
; 메모리에서 interned 문자열을 위해 사용할 메모리량 
; interned string 에 대해서는 https://wiki.php.net/rfc/performanceimprovements 참조. 
;opcache.interned_strings_buffer=4 
opcache.interned_strings_buffer=4
  
; OPCache 해쉬 테이블에서 가질수 있는 키값의 최대 값. 
; 이는 200 ~ 100000 사이에 값만 가질 수 있다. 
opcache.max_accelerated_files=2000 
  
; 재시작이 스케줄 될때까지 "wasted" 최대 메모리 비율(percentage) 
opcache.max_wasted_percentage=1 
  
; 이 값을 활성화 하면, OPCache 는 현재 작업디렉토리를 스크립트 키에 추가하고, 
; 같은 이름(basename) 을 가진 파일들사이에 가능한 충돌을 제거하게 된다. 
; 이 값을 비활성화하면 성능이 향상되지만, 존재하는 애플리케이션이 깨질 수 있다. 
;opcache.use_cwd=1 
  
; 이것을 비활성화하면, OPCache 를 수동으로 리셋해주거나 
; 파일시스템이 변한것에대해 효과를 얻기위해서는 웹서버를 재시작 해줘야만 한다. 
opcache.validate_timestamps=1 
  
; 공유 메모리 저장소 할당을 위해서 변화된 것들에 대해 얼마나 자주 파일 타임스템프 
; 를 체크(초단위)할지를 정한다. ("1" means validate once per second, but only once per request. "0" 은 늘 유효성 검사를 한다.) 
; XE 사용자는 0이 맞단다. 글쓰고 난 후 클릭해도 바로 안나오는 오류가 발생됨.
opcache.revalidate_freq=10
  
; include_path 최적화에서 파일 서치(search)를 할지 말지 결정. 
opcache.revalidate_path=1 
  
; 이것을 비활성화 할 경우, 모든 PHPDoc 코멘트는 최적화 코드 사이즈를 줄이기 위해서 
; 코드로부터 삭제된다. 
opcache.save_comments=0 

 

httpd.conf

# gzip 대신 쓰는 압축
LoadModule deflate_module modules/mod_deflate.so

# 브라우저 캐시관련
LoadModule expires_module modules/mod_expires.so

#디스크캐시 일단 다시 비활성
LoadModule cache_disk_module modules/mod_cache_disk.so

# 2016년 3월 22일 갑자기 0으로 변경했다. 또 뻣을까?

# MaxRequestsPerChild  5000 초기값
MaxRequestsPerChild  0 #수정함.

 

 

mpm.conf

# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestWorkers: maximum number of worker threads
# MaxConnectionsPerChild: maximum number of connections a server process serves
#   스타트서버 * 맥스퍼차일드 = 500 총접속쓰레드
<IfModule mpm_event_module>
    StartServers             5
    MinSpareThreads         20
    MaxSpareThreads        200
    ThreadsPerChild        100
    MaxRequestWorkers      300
    MaxConnectionsPerChild   0
</IfModule>

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxConnectionsPerChild: maximum number of connections a server process serves
<IfModule mpm_winnt_module>

#    ThreadLimit             500
    ThreadsPerChild         500
    MaxConnectionsPerChild 50000
</IfModule>
 

수정해 봤는데 또 멈출까?

 

로그인 후 댓글쓰기가 가능합니다.

?
  • ?
    Progress 2016.03.23 14:42
    http://jace.tistory.com/m/post/100

    Keepalive
  • ?
    Progress 2016.03.25 07:53

    67023 2016] [mpm_winnt:notice] [pid 2672:tid 396] AH00358: Child: Process exiting because it reached MaxConnectionsPerChild. Signaling the parent to restart a new child process.
    [Fri Mar 25 01:52:55.467023 2016] [mpm_winnt:notice] [pid 2116:tid 480] AH00424: Parent: Received restart signal -- Restarting the server.
    Fri Mar 25 01:52:55 2016 (9872): Fatal Error Unable to reattach to base address
    [Fri Mar 25 01:52:57.472281 2016] [mpm_winnt:notice] [pid 2672:tid 396] AH00364: Child: All worker threads have exited.
    [Fri Mar 25 07:37:15.505060 2016] [core:warn] [pid 4424:tid 344] AH00098: pid file C:/AutoSet9/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Fri Mar 25 07:37:15.532063 2016] [mpm_winnt:notice] [pid 4424:tid 344] AH00455: Apache/2.4.10 (Win64) PHP/5.6.0 configured -- resuming normal operations
    [Fri Mar 25 07:37:15.532063 2016] [mpm_winnt:notice] [pid 4424:tid 344] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
    [Fri Mar 25 07:37:15.532063 2016] [core:notice] [pid 4424:tid 344] AH00094: Command line: 'C:\\AutoSet9\\Server\\bin\\httpd.exe -d C:/AutoSet9/server -D C:\\AutoSet9\\Server\\conf\\httpd.conf'
    [Fri Mar 25 07:37:15.533064 2016] [mpm_winnt:notice] [pid 4424:tid 344] AH00418: Parent: Created child process 860
    [Fri Mar 25 07:37:16.073133 2016] [mpm_winnt:notice] [pid 860:tid 448] AH00354: Child: Starting 500 worker threads.

     

  • ?
    Progress 2016.03.25 08:06
    음...
    왜?
    Maxrequestperchild 가..

List of Articles
번호 분류 제목 날짜 조회 수
477 WindowsTip 삼성노트북 NT300E5C-A15R 드라이버 2012.11.27 8811
476 AutoHotKey autohotkey) 파일리스트 가져오기 3 2012.11.26 14972
475 컴퓨터잡담 Ateros(아테로스) AR9485WB-EG 무선 네트워크 어댑터 드라이버 업데이트 및 다운로드 4 file 2012.11.25 15762
474 컴퓨터잡담 실시간 메모리 최적화 [Cleanmem] 11 file 2012.11.23 8017
473 WindowsTip 가상메모리 클리어로 빠른 부팅하기 12 file 2012.11.23 14945
472 AutoHotKey AHK) 보안프로그램 등으로 화면복사(Printscreen) 안될때 사용방법 1 12 file 2012.11.21 47162
471 컴퓨터잡담 XE) blogapi 기능 특이증상 해결방법 2012.11.21 4935
470 컴퓨터잡담 blogapi 기능을 사용하여 xe 게시판으로 글쓰기 2012.11.20 7171
469 컴퓨터잡담 XE 모바일에서 글쓰기 안되는 증상 해결방법 file 2012.11.10 4950
468 컴퓨터잡담 [Windows - 지연된 쓰기 실패] 오류메시지 복구방법 2012.11.07 8774
467 컴퓨터잡담 공유기가 자꾸 다운되는 현상에 대한 여러가지 해결방법 2 2012.11.05 5036
466 컴퓨터잡담 공룡 색칠공부 file 2012.10.29 4492
465 컴퓨터잡담 차단된 사이트 프록시서버로 우회하는 방법 3 2012.10.24 10765
464 컴퓨터잡담 ARP(mac spoofing) 바이러스 내용 스크랩 3 file 2012.10.19 6438
463 컴퓨터잡담 TCP View로 네트워크 트래픽 유발 프로그램 찾아내기 file 2012.10.18 6062
462 컴퓨터잡담 Wireshark 이용하여 tcp/ip 패킷내용 추출하기 2 6 2012.10.18 8147
461 컴퓨터잡담 프린터 내용 파일로 저장하기 doPDF 2012.10.17 4706
460 컴퓨터잡담 구글 플레이스토어 file 2012.10.16 3940
459 컴퓨터잡담 GfxUI.exe 오류 발생시 긴급조치 / 화면깨짐현상 등 2 file 2012.10.16 14425
458 컴퓨터잡담 도스모드 ftp에서 하위폴더까지 모두 ftp로 전송하기 18 2012.10.04 18784
Board Pagination Prev 1 ... 21 22 23 24 25 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소