-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Bug Report
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 132059512 bytes) in /var/www/admin.dotkernel.localhost/html/vendor/laminas/laminas-filter/src/Compress/Gz.php on line 213
We need to increase the amount of memory the geoip:synchronize command can consume.
We have three options here:
- Hardcode in the command with:
ini_set('memory_limit', '256M');- Add an argument where developers can set the amount of memory the command can consume:
php ./bin/cli.php geoip:synchronize --memory-limit 256M- Add a config where developers can set the amount of memory the command can consume:
return [
'dot-geoip' => [
'memoryLimit' => 256, // Megabytes
'targetDir' => getcwd() . '/data/geoip',
'databases' => [
LocationService::DATABASE_ASN => [
'source' => 'https://download.db-ip.com/free/dbip-asn-lite-{year}-{month}.mmdb.gz',
],
LocationService::DATABASE_CITY => [
'source' => 'https://download.db-ip.com/free/dbip-city-lite-{year}-{month}.mmdb.gz',
],
LocationService::DATABASE_COUNTRY => [
'source' => 'https://download.db-ip.com/free/dbip-country-lite-{year}-{month}.mmdb.gz',
],
],
],
];Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels