当前位置:网站首页>常见问题之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 国际许可协议 进行许可。
边栏推荐
猜你喜欢
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
Zibll theme external chain redirection go page beautification tutorial
面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
真正的缓存之王,Google Guava 只是弟弟
How to apply the updated fluent 3.0 to applet development
jasypt配置文件加密|快速入门|实战
法国学者:最优传输理论下对抗攻击可解释性探讨
These 18 websites can make your page background cool
Summit review | baowanda - an integrated data security protection system driven by compliance and security
[public class preview]: basis and practice of video quality evaluation
随机推荐
MySQL if else use case use
[server data recovery] a case of RAID5 data recovery stored in a brand of server
Internal JSON-RPC error. {"code":-32000, "message": "execution reverted"} solve the error
Source code analysis of etcd database -- peer RT of inter cluster network layer client
Ueditor + PHP enables Alibaba cloud OSS upload
通讯录(链表实现)
[MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
ETCD数据库源码分析——集群间网络层客户端peerRt
Intranet penetration tool NetApp
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
Aikesheng sqle audit tool successfully completed the evaluation of "SQL quality management platform grading ability" of the Academy of communications and communications
不知道这4种缓存模式,敢说懂缓存吗?
Binder communication process and servicemanager creation process
那些考研后才知道的事
French scholars: the explicability of counter attack under optimal transmission theory
法国学者:最优传输理论下对抗攻击可解释性探讨
asp. Net read TXT file
Pancake Bulldog robot V2 (code optimized)
Idea设置方法注释和类注释
Jetpack Compose入门到精通