Answer the question
In order to leave comments, you need to log in
How to solve the error during migrations?
Good afternoon.
There was such situation on a hosting.
When trying to execute a command php yii
or php yii migrate
an error pops up:
Fatal Error Unable to allocate shared memory segment of 134217728 bytes: mmap: Cannot allocate memory (12)
Literally a couple of days ago everything worked with a bang.
I wrote to the hoster, he nods at my scripts. I said that I just ran migrations, simple table creation, no data.
The hoster is interested in how much these operations take up memory and continues to nod at the load on my part.
How to be in this situation?
Answer the question
In order to leave comments, you need to log in
You don't have enough RAM, that's a fact.
We just need to find out what happened.
Perhaps you didn't turn off the dev mod? Perhaps the server really does not have enough RAM for your task?
Here, either do not one migration, but several smaller migrations and run them in turn.
Well, the easiest option is to change the host, although it's not a fact that it's his fault - maybe you have a gluttonous cycle going in cycles somewhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question