PHP 메모리 부족

Jmnote (토론 | 기여)님의 2012년 8월 6일 (월) 14:48 판
Fatal error: Allowed memory size of 134217728 bytes exhausted
memory exhausted in ofc_scatter.php
Open Flash Chart 2 메모리 부족
  • PHP의 메모리 제한 기본값은 128MB이다.
  • 데이터가 너무너무 많을 경우 PHP에서 다음과 같이 메모리 부족 메시지가 발생하더라.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/open-flash-chart/php-ofc-library/ofc_scatter.php on line 5

1 설정값 확인

[root@jmnote ~]# cat /etc/php.ini | grep memory_limit
memory_limit = 128M

2 조치방법 1

메모리 제한 늘리기

ini_set('memory_limit','192M');

3 조치방법 2

메모리 제한 풀기

ini_set('memory_limit','-1');

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}