In-system memory overflow in thinkphp framework

Source: Internet
Author: User
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
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.