Skip to content

Memory leak on import command #375

@michnovka

Description

@michnovka

Despite #351 I still get

  Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 86016 bytes)  

after importing larger DB.

Indexed a batch of 500 / 500 App\Entity\Log\CronLog entities into app_dev_cron_logs index (268000 indexed since start)
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 86016 bytes) in /var/www/dockontrol/vendor/meilisearch/meilisearch-php/src/Http/Serialize/Json.php on line 18
14:01:41 CRITICAL  [php] Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 86016 bytes) ["exception" => Symfony\Component\ErrorHandler\Error\OutOfMemoryError^ { …}]

In Json.php line 18:
                                                                                           
  Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 86016 bytes)  
                                                                                           

I believe there has to be a memory leak, as each row of this CronLog has NO references to other tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstalePull request or issue that has recieve no activity for a long time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions