teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 142 forks source link

on shared hosting mmap() failed: [12] Cannot allocate memory #340

Closed karthick003 closed 2 years ago

karthick003 commented 2 years ago

hi , am trying to import through this command in terminal php artisan scout:import App\Models\ArticleModel . the data is not more than 8800 entries . after running the command am getting error: mmap() failed: [12] Cannot allocate memory

Symfony\Component\ErrorHandler\Error\FatalError

Out of memory (allocated 348942336) (tried to allocate 2056192 bytes)

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:421

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

please help

karthick003 commented 2 years ago

php artisan scout:import App\Models\ArticleModel

mmap() failed: [12] Cannot allocate memory Segmentation fault