edgardmessias / yii2-ibm-db2

This extension adds IBM DB2 database engine extension for the Yii framework 2.0.
Other
7 stars 6 forks source link

Out of memory - yii migrate command #12

Open kaspirovski opened 6 years ago

kaspirovski commented 6 years ago

Hello. I have configured pdo_ibm and sucessfully connected to the database server, but when I want to run migration command php yii migrate I get the following error:

Yii Migration Tool (based on Yii v2.0.15.1)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 4194304) (tried to allocate 140733193388072 bytes) in /var/www/html/yii2-project/vendor/yiisoft/yii2/db/Schema.php on line 463

Someone help?


Server configuration:

pdo_ibm support enabled
Module release 1.3.5
PHP 7.1.20-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul 25 2018 10:07:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.20-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
edgardmessias commented 6 years ago

@kaspirovski, is a PDO_IBM bug

140733193388072 bytes = 128 TB

Jonyx4 commented 4 years ago

Edgard do you have any idea or guite of how to solve this?