Skip to content

Memory leak on import command #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michnovka opened this issue Feb 5, 2025 · 1 comment
Open

Memory leak on import command #375

michnovka opened this issue Feb 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@michnovka
Copy link

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

@norkunas norkunas added the bug Something isn't working label Feb 5, 2025
@norkunas
Copy link
Collaborator

norkunas commented Feb 5, 2025

Not sure. Could you track down if this is related to doctrine itself?
Do you run your command with debug enabled? Does it work with --no-debug ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants