Home  >  Article  >  Backend Development  >  Fatal error: Out of memory (allocated 1916534784) (tried to allocate 44 bytes)解决办法

Fatal error: Out of memory (allocated 1916534784) (tried to allocate 44 bytes)解决办法

WBOY
WBOYOriginal
2016-06-13 11:06:491845browse

Fatal error: Out of memory (allocated 1916534784) (tried to allocate 44 bytes)
Fatal error: Out of memory (allocated 1916534784) (tried to allocate 44 bytes) 

程序运行报了这个错,php.ini里memory_limit = 1024M
还是不行,不知道是怎么回事
------解决方案--------------------
memory_limit 的作用是限定 php 最大可使用的内存
你 memory_limit = 1024M
却有 1827.75M 可用!
应该说是你的 php 版本有问题

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn