system memory overflow in the thinkphp framework
A page with too much data is an error: Fatal Error:out of memory (allocated 1781792768) (tried to allocate-bytes) in C:\workspace\gshm_hrp\ThinkP hp\lib\think\db\driver\dbmysql.class.php on line 243
I modified the configuration inside the php.ini:
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 = 2048M; Maximum amount of memory a script may consume (8MB)
Please look at the great God. PHP thinkphp Memory Overflow
Share to:
------Solution--------------------
A PHP process is allowed to use 2G of memory?
What if many people visit at the same time?
It turns out that when your program starts, you get only 1699.25M of the maximum available memory space. Your system is already too busy.
I don't know what you've done, but obviously you did something unnatural.
A browser screen will be able to display 4, 50 lines, you prepared so much data how to put down?
Suggest you adjust your algorithm, can be segmented processing of the segment processing, can be handed over to the database processing, not by PHP processing