Bug #78808 [NEW]: [LMDB] MDB_MAP_FULL: Environment mapsize limit reached
| From: | progr-d at yandex dot ru | Date: | Wed, 13 Nov 2019 10:21:18 +0000 |
| Subject: | Bug #78808 [NEW]: [LMDB] MDB_MAP_FULL: Environment mapsize limit reached | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223692@lists.php.net to get a copy of this message | ||
From: progr-d at yandex dot ru
Operating system: macOS 10.13.6
PHP version: 7.3.11
Package: DBM/DBA related
Bug Type: Bug
Bug description:[LMDB] MDB_MAP_FULL: Environment mapsize limit reached
Description:
------------
Presently php not provide any way to change
mapsize for lmdb databases
and they limited by size.
How can I fix this? Now, probably, I can only recompile the lmdb
library...
PS: build php in macos with lmdb support:
https://gist.github.com/saippuakauppias/fac2a33dfe420adb4a6cf19c257eef46
Test script:
---------------
<?php
$lmdb_h = dba_open('test.db', 'c', 'lmdb');
for ($i = 0; $i < 50000; $i++) {
dba_insert('key' . $i, 'value '. $i, $lmdb_h);
}
dba_close($lmdb_h);
Actual result:
--------------
â php prefill_lmdb.php
PHP Warning: dba_insert(key18505,value 18505): MDB_MAP_FULL:
Environment mapsize limit reached in /Users/usr/prefill_lmdb.php on line
6
Warning: dba_insert(key18505,value 18505): MDB_MAP_FULL: Environment
mapsize limit reached in /Users/usr/prefill_lmdb.php on line 6
[1] 42370 segmentation fault php prefill_lmdb.php
--
Edit bug report at https://bugs.php.net/bug.php?id=78808&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78808&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78808&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78808&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78808&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78808&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78808&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78808&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78808&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78808&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78808&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78808&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78808&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78808&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78808&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78808&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78808&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78808&r=mysqlcfg