Fatal error: out of dynamic memory in yy_create_buffer() 정보
Fatal error: out of dynamic memory in yy_create_buffer()본문
잘 되던 웹서버(윈도우서버)가 가끔 가다 한번씩 아래와 같은 오류를 냅니다.
이 오류가 나면 홈페이지도 관리자 화면도 접속이 안되고, phpmyadmin 도 실행이 안됩니다.
MySQL 콘솔 모드로는 접속이 됩니다.
어찌해야할지를 몰라서 그냥 mysql 서버 중지시키고, 웹서버를 재시동하면 말짱하게 다시 잘 작동합니다.
홈페이지 접속을 하면 허연 화면에 요 한 줄만 달랑 내고 맙니다.
Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0
나름대로 검색을 한다고는 해봤는데, 이거다 싶은 해답을 찾지 못하였습니다.
무엇을 더 점검해봐야 할런지요?
이 오류가 나면 홈페이지도 관리자 화면도 접속이 안되고, phpmyadmin 도 실행이 안됩니다.
MySQL 콘솔 모드로는 접속이 됩니다.
어찌해야할지를 몰라서 그냥 mysql 서버 중지시키고, 웹서버를 재시동하면 말짱하게 다시 잘 작동합니다.
홈페이지 접속을 하면 허연 화면에 요 한 줄만 달랑 내고 맙니다.
Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0
나름대로 검색을 한다고는 해봤는데, 이거다 싶은 해답을 찾지 못하였습니다.
무엇을 더 점검해봐야 할런지요?

작성자에 의해 채택됐습니다.
평균 동시접속자수가 몇명인가요 ?
메모리를 최적화 해보시는게 좋을것 같습니다. 그래도 안된다면 메모리 증설해보시구요
동시접속자수가 많은 사이트인건가요?
echo > /proc/sys/vm/drop_caches (SSH 에서 실행)
메모리를 최적화 해보시는게 좋을것 같습니다. 그래도 안된다면 메모리 증설해보시구요
동시접속자수가 많은 사이트인건가요?
echo > /proc/sys/vm/drop_caches (SSH 에서 실행)
댓글 전체
위 본문에 추가 설명입니다.
아파치 에러 로그에 아래와 같은 기록이 있고,
Out of memory (Needed 135168 bytes)
Out of memory (Needed 122880 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 65536 bytes)
Out of memory (Needed 44752 bytes)
Out of memory (Needed 23624 bytes)
Out of memory (Needed 36864 bytes)
Out of memory (Needed 40960 bytes)
Out of memory (Needed 15312 bytes)
Out of memory (Needed 13144 bytes)
Out of memory (Needed 31856 bytes)
Out of memory (Needed 22984 bytes)
Out of memory (Needed 21840 bytes)
Out of memory (Needed 10928 bytes)
Out of memory (Needed 11288 bytes)
Out of memory (Needed 65536 bytes)
php.ini 에 관련 항목은 아래와 같습니다.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time =3600 ; 30 Maximum execution time of each script, in seconds
max_input_time =600 ; 60 Maximum amount of time each script may spend parsing request data
memory_limit =128M ; 16M Maximum amount of memory a script may consume (8MB)
128M로 설정한 것이 지나치게 크게 잡은 것일까요?
아파치 에러 로그에 아래와 같은 기록이 있고,
Out of memory (Needed 135168 bytes)
Out of memory (Needed 122880 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 69632 bytes)
Out of memory (Needed 65536 bytes)
Out of memory (Needed 44752 bytes)
Out of memory (Needed 23624 bytes)
Out of memory (Needed 36864 bytes)
Out of memory (Needed 40960 bytes)
Out of memory (Needed 15312 bytes)
Out of memory (Needed 13144 bytes)
Out of memory (Needed 31856 bytes)
Out of memory (Needed 22984 bytes)
Out of memory (Needed 21840 bytes)
Out of memory (Needed 10928 bytes)
Out of memory (Needed 11288 bytes)
Out of memory (Needed 65536 bytes)
php.ini 에 관련 항목은 아래와 같습니다.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time =3600 ; 30 Maximum execution time of each script, in seconds
max_input_time =600 ; 60 Maximum amount of time each script may spend parsing request data
memory_limit =128M ; 16M Maximum amount of memory a script may consume (8MB)
128M로 설정한 것이 지나치게 크게 잡은 것일까요?
메모리가 부족해서 뜨는 에러인것같습니다,
메모리를 증설해보세요,
메모리를 증설해보세요,
위 문제 추가 사항입니다.
서버는 윈도우서버 2003 32bit 이고,
물리적 메모리 4GB 설치되어 있고,
시스템 정보에 보면 4GB 인식이 되고 있습니다.
32bit 서버에서는 4GB 이상은 인식이 안된다고 알고 있습니다.
서버는 윈도우서버 2003 32bit 이고,
물리적 메모리 4GB 설치되어 있고,
시스템 정보에 보면 4GB 인식이 되고 있습니다.
32bit 서버에서는 4GB 이상은 인식이 안된다고 알고 있습니다.
작성자에 의해 채택됐습니다.
평균 동시접속자수가 몇명인가요 ?
메모리를 최적화 해보시는게 좋을것 같습니다. 그래도 안된다면 메모리 증설해보시구요
동시접속자수가 많은 사이트인건가요?
echo > /proc/sys/vm/drop_caches (SSH 에서 실행)
메모리를 최적화 해보시는게 좋을것 같습니다. 그래도 안된다면 메모리 증설해보시구요
동시접속자수가 많은 사이트인건가요?
echo > /proc/sys/vm/drop_caches (SSH 에서 실행)
원문 : http://dash30.com/?p=252
Solving PHP’s yy_create_buffer bug
Have you ever run into the following error message in PHP?
Fatal error: out of dynamic memory in yy_create_buffer()I ran into this not long ago and had a hard time understanding the problem, though the fix is simple. This is a bug in PHP versions prior to 5.2 on BSD based systems.
Short of upgrading PHP to a newer version, open the php.ini file and toggle the output_buffering variable from “Off” to 4096. This variable can be found in the “Language Options” section of the file. This will have the side effect of slowing down the PHP interpreter, but it should also eliminate the bug by forcing the interpreter to flush its buffer to the web socket regularly while executing the file requested.
More information about this bug:
•http://qaix.com/content-management-system/305-641-aw-aw-aw-out-of-dynamic-memory-in-yy-create-buffer-read.shtml
•http://bugs.php.net/35096
•http://wordpress.org/support/topic/242373
참으로 오랜 검색끝에 제대로 된 해답을 찾은 듯합니다.
글쓴이도 위 애러 때문에 애를 먹은 듯합니다.
PHP 5.2 보다 오래된 버전에서 발생하는 버그라고 합니다. <= 명쾌한 답변아닙니까?
쉽게는 PHP를 최신버전으로 업그레이드하라고 합니다.
아니면 PHP.INI 를 열어서
output_buffering = Off 를
output_buffering = 4096 으로 변경하라고 합니다.
이렇게 하면 php 실행이 다소 느려지는 현상은 있지만, 에러가 나서 당황하는 현상은 피해갈 수 있다고 합니다.
고치고 나서, 적용할려면 서버를 재시동하여야 할겁니다.
Solving PHP’s yy_create_buffer bug
Have you ever run into the following error message in PHP?
Fatal error: out of dynamic memory in yy_create_buffer()I ran into this not long ago and had a hard time understanding the problem, though the fix is simple. This is a bug in PHP versions prior to 5.2 on BSD based systems.
Short of upgrading PHP to a newer version, open the php.ini file and toggle the output_buffering variable from “Off” to 4096. This variable can be found in the “Language Options” section of the file. This will have the side effect of slowing down the PHP interpreter, but it should also eliminate the bug by forcing the interpreter to flush its buffer to the web socket regularly while executing the file requested.
More information about this bug:
•http://qaix.com/content-management-system/305-641-aw-aw-aw-out-of-dynamic-memory-in-yy-create-buffer-read.shtml
•http://bugs.php.net/35096
•http://wordpress.org/support/topic/242373
참으로 오랜 검색끝에 제대로 된 해답을 찾은 듯합니다.
글쓴이도 위 애러 때문에 애를 먹은 듯합니다.
PHP 5.2 보다 오래된 버전에서 발생하는 버그라고 합니다. <= 명쾌한 답변아닙니까?
쉽게는 PHP를 최신버전으로 업그레이드하라고 합니다.
아니면 PHP.INI 를 열어서
output_buffering = Off 를
output_buffering = 4096 으로 변경하라고 합니다.
이렇게 하면 php 실행이 다소 느려지는 현상은 있지만, 에러가 나서 당황하는 현상은 피해갈 수 있다고 합니다.
고치고 나서, 적용할려면 서버를 재시동하여야 할겁니다.