Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)

前端 未结 29 2572
天涯浪人
天涯浪人 2020-11-21 22:57

I have a bunch of client point of sale (POS) systems that periodically send new sales data to one centralized database, which stores the data into one big database for repor

29条回答
  •  忘掉有多难
    2020-11-21 23:40

    Crash page?

    (It happens when MySQL has to query large rows. By default, memory_limit is set to small, which was safer for the hardware.)

    You can check your system existing memory status, before increasing php.ini:

    # free -m
                 total       used       free     shared    buffers     cached
    Mem:         64457      63791        666          0       1118      18273
    -/+ buffers/cache:      44398      20058
    Swap:         1021          0       1021
    

    Here I have increased it as in the following and then do service httpd restart to fix the crash page issue.

    # grep memory_limit /etc/php.ini
    memory_limit = 512M
    

提交回复
热议问题