A
A
Artyom2016-06-24 00:24:27
Yii
Artyom, 2016-06-24 00:24:27

How to solve PHP Fatal Error 'yii\base\ErrorException' with message 'Out of memory?

In YII, I run a script through php yii ... a script that should run for 10 minutes, but after a few minutes, an error occurs PHP Fatal Error 'yii\base\ErrorException' with message 'Out of memory (allocated 1552941056) (tried to allocate 67108864 bytes) '. How to deal with it? Or what is the best way to organize the work of the parser so that the server does not load like that? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-06-24
@R0dger

It depends on what the parser does for you, everything is individual (the script itself may be poorly written, it may use AR with 10000 records without an iterator, etc.), plus it may be possible to break the work into stages or something else ... it’s hard about a spherical horse in a vacuum speak.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question