当前位置:网站首页>常见问题之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 国际许可协议 进行许可。
边栏推荐
- These 18 websites can make your page background cool
- 53. 最大子数组和:给你一个整数数组 nums ,请你找出一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。
- 几款分布式数据库的对比
- 【MySQL 使用秘籍】一网打尽 MySQL 时间和日期类型与相关操作函数(三)
- When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
- 网络安全-HSRP协议
- Nantong online communication group
- Embedded software architecture design - message interaction
- ZABBIX monitoring
- redis6主从复制及集群
猜你喜欢
Attack and defense world crypto WP
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
Win10 - lightweight gadget
Can graduate students not learn English? As long as the score of postgraduate entrance examination English or CET-6 is high!
The real king of caching, Google guava is just a brother
深拷贝真难
UE源码阅读[1]---由问题入手UE中的延迟渲染
How to apply the updated fluent 3.0 to applet development
::ffff:192.168.31.101 是一个什么地址?
:: ffff:192.168.31.101 what address is it?
随机推荐
RK3566添加LED
如何把大的‘tar‘存档文件分割成特定大小的多个文件
Network security - Novice introduction
内网穿透工具 netapp
多人合作项目查看每个人写了多少行代码
ZABBIX monitoring
asp.net 读取txt文件
Log4j utilization correlation
Hide Chinese name
Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
What is information security? What is included? What is the difference with network security?
Source code analysis of etcd database -- peer RT of inter cluster network layer client
Usage, installation and use of TortoiseSVN
NFT value and white paper acquisition
Zhubo Huangyu: it's really bad not to understand these gold frying skills
Data Lake (VII): Iceberg concept and review what is a data Lake
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
Rk3566 add LED
Redis6 transaction and locking mechanism
stm32逆向入门