0

I'm having large performance issues with magento2. The pages takes several seconds (up to minutes) to load the front- and backend. Also the "cron:run" command takes quite a long time. I configured cronjobs as mentioned and after a while I have multiple instances of cron:run running and obviously this is consuming very much CPU and RAM capacities. The server gets stuck very soon.

I have the developer mode and all caches active and the code is reindexed.

I'm running PHP 7 and MySql 5.7 behind an Apache 2.4.10 on Debian 8. I tried to run Magento2 on a different machine and reinstalled it (on the same machine) but the problems are persistent.

Any ideas? I cannot run magento2 in production with this behavior.

  • change db settings localhost to 127.0.0.1 . if you are running in windows change port 80 to something in httpd.conf file (listen 80 to something ) – Naisa purushotham May 15 '18 at 6:52
  • Have you tried looking in the cron_schedule table to see which cron job is taking the most time? Look for the difference between "executed_at" and "finished_at" – sduif May 15 '18 at 6:58
  • Please install profiler (like Blackfire/tideways) investigate the problem – KAndy May 15 '18 at 19:55
0

Please install this module to fix that magento issue : https://github.com/Alekseon/CleanRunningJobs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.