Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question