当前位置:网站首页>常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
2022-07-05 13:49:00 【CN華少】
常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
背景
日常我们开发时,我们会遇到各种各样的奇奇怪怪的问题(踩坑o(╯□╰)o),这个常见问题系列就是我日常遇到的一些问题的记录文章系列,这里整理汇总后分享给大家,让其还在深坑中的小伙伴有绳索能爬出来。
同时在这里也欢迎大家把自己遇到的问题留言或私信给我,我看看其能否给大家解决。
开发环境
- 系统:windows10
- 语言:PHP
内容
错误
Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in...
造成原因:
在操作某项数据时使用的内存超过最大限定,导致内存溢出无法有效占用导致。
解决方案:
1、php.ini中memory_limit设置为512M
2、在程序中增加ini_set("memory_limit", "512M"); 语句
本文声明:

本作品由 cn華少 采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
边栏推荐
- PHP basic syntax
- How to deal with the Yellow Icon during the installation of wampserver
- leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
- [South China University of technology] information sharing of postgraduate entrance examination and re examination
- Data Lake (VII): Iceberg concept and review what is a data Lake
- Scientific running robot pancakeswap clip robot latest detailed tutorial
- Network security HSRP protocol
- How to divide a large 'tar' archive file into multiple files of a specific size
- How to apply the updated fluent 3.0 to applet development
- 面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
猜你喜欢

Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care

Idea remote debugging agent

laravel-dompdf导出pdf,中文乱码问题解决
![Primary code audit [no dolls (modification)] assessment](/img/b8/82c32e95d1b72f75823ca91c97138e.jpg)
Primary code audit [no dolls (modification)] assessment

深拷贝真难

ZABBIX monitoring

uplad_ Labs first three levels

Win10——轻量级小工具

What about data leakage? " Watson k'7 moves to eliminate security threats

面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
随机推荐
STM32 reverse entry
Laravel generate entity
Ordering system based on wechat applet
不知道这4种缓存模式,敢说懂缓存吗?
如何把大的‘tar‘存档文件分割成特定大小的多个文件
uplad_ Labs first three levels
真正的缓存之王,Google Guava 只是弟弟
Network security - Novice introduction
Address book (linked list implementation)
【公开课预告】:视频质量评价基础与实践
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
Jetpack compose introduction to mastery
js 从一个数组对象中取key 和value组成一个新的对象
When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
ELFK部署
[public class preview]: basis and practice of video quality evaluation
[server data recovery] a case of RAID5 data recovery stored in a brand of server
What are the private addresses
我为什么支持 BAT 拆掉「AI 研究院」
通讯录(链表实现)