When the system memory overflow data volume in the thinkphp framework is too large, the following error occurs: Fatal & nbsp; error: & nbsp; Out & nbsp; of & nbsp; memory & nbsp; (allocated & nbsp; 1781792768) & nbsp; (tried & nbsp; to & nbsp; allocate & n thinkphp framework system memory overflow
When the data volume is too large, the following error occurs: Fatal error: Out of memory (allocated 1781792768) (tried to allocate 42 bytes) in C: \ workspace \ gshm_hrp \ ThinkPHP \ Lib \ Think \ Db \ Driver \ DbMysql. class. php on line 243
I modified the configuration in php. ini as follows:
Max_execution_time = 0; Maximum execution time of each script, in seconds
Max_input_time = 300; Maximum amount of time each script may spend parsing request data
Memory_limit = 2048 M; Maximum amount of memory a script may consume (8 MB)
Please take a look. Php thinkphp memory overflow shared:
------ Solution --------------------
Can a php process use 2 GB of memory?
What if multiple users access the service at the same time?
It turns out that when your program is started, only 1699.25 MB of maximum available memory is available. Your system is too busy.
I don't know what you have done, but it is obviously an unreasonable thing.
The browser displays four or five rows on a screen. how can you store so much data?
We recommend that you adjust your algorithm to process segments only. php will not process the segments that can be handed over to the database.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.