Cron causing high CPUMagento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are runningCron generating a lot of process causing the server to hang (Magento 2.0.2)White admin login screen on magento 2blank page on M2 on ubuntu on aws after 'successful' installCron stopped working after setting up multi store on Magento2Magento Installer - File Permission Check FailGet an error when deploy magento2Component Manager Readiness Check ErrorsFresh Magento 2.1.14, Readiness Check fail with conflicting component dependenciesPeak cpu and disk every 1 minuteMost Cron Jobs show as missed

4*4*4 Rubiks cube Top Layer Issue

How can drunken, homicidal elves successfully conduct a wild hunt?

Why is the relationship between frequency and pitch exponential?

What's the right way to purge recurrently with apt?

Average spam confidence

Random Portfolios vs Efficient Frontier

How to retract the pitched idea from employer?

Does the first version of Linux developed by Linus Torvalds have a GUI?

How Can I Tell The Difference Between Unmarked Sugar and Stevia?

Turing patterns

How do photons get into the eyes?

Movie about a boy who was born old and grew young

Why don’t airliners have temporary liveries?

Are there any existing monsters I can use as a basis for a baby skeleton statblock?

Subtables with equal width?

How were concentration and extermination camp guards recruited?

Russian equivalent of the French expression "broyer du noir"

Strat tremolo bar has tightening issues

Deformation of rectangular plot

What is the purpose of building foundations?

Select items in a list that contain criteria

How do I write "Show, Don't Tell" as a person with Asperger Syndrome?

Java guess the number

What are the words for people who cause trouble believing they know better?



Cron causing high CPU


Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are runningCron generating a lot of process causing the server to hang (Magento 2.0.2)White admin login screen on magento 2blank page on M2 on ubuntu on aws after 'successful' installCron stopped working after setting up multi store on Magento2Magento Installer - File Permission Check FailGet an error when deploy magento2Component Manager Readiness Check ErrorsFresh Magento 2.1.14, Readiness Check fail with conflicting component dependenciesPeak cpu and disk every 1 minuteMost Cron Jobs show as missed






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Our /var/log/messages is flooded with these records:



Jan 25 13:17:04 885589-DB1 systemd: Starting Session 570175 of user apache.


Which causes high CPU process:



1858 root 20 0 345084 315516 1392 R 95.1 0.5 7696:47 systemd-logind


Caused by these in the crontab:



* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/vhosts/html/site/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/update/cron.php >> /var/www/vhosts/html/site/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento setup:cron:run >> /var/www/vhosts/html/site/var/log/setup.cron.log


If I comment out the jobs, it stops.
Any ideas why these cronjobs are launching a lot of apache sessions?




Server version: Apache/2.4.6 (CentOS)



PHP 7.0.27 (cli) (built: Jan 4 2018 13:39:07) ( NTS )



Magento 2.1.10 - 2.2.2




EDIT



I apologize, priorities took me away. The issue has disappeared for unknown reasons. Most likely a 3rd party module has been updated.










share|improve this question
























  • Have you looked on this answer? magento.stackexchange.com/questions/208592/…

    – user5198077
    Jan 25 '18 at 19:42











  • cron_schedule appears to be fine.

    – Bernard
    Jan 25 '18 at 20:12











  • which CPU you have? magento in developer mode?

    – MagenX
    Jan 25 '18 at 21:46











  • 4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

    – Bernard
    Jan 26 '18 at 13:23











  • Magento2 is in default mode.

    – Bernard
    Jan 26 '18 at 13:55

















0















Our /var/log/messages is flooded with these records:



Jan 25 13:17:04 885589-DB1 systemd: Starting Session 570175 of user apache.


Which causes high CPU process:



1858 root 20 0 345084 315516 1392 R 95.1 0.5 7696:47 systemd-logind


Caused by these in the crontab:



* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/vhosts/html/site/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/update/cron.php >> /var/www/vhosts/html/site/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento setup:cron:run >> /var/www/vhosts/html/site/var/log/setup.cron.log


If I comment out the jobs, it stops.
Any ideas why these cronjobs are launching a lot of apache sessions?




Server version: Apache/2.4.6 (CentOS)



PHP 7.0.27 (cli) (built: Jan 4 2018 13:39:07) ( NTS )



Magento 2.1.10 - 2.2.2




EDIT



I apologize, priorities took me away. The issue has disappeared for unknown reasons. Most likely a 3rd party module has been updated.










share|improve this question
























  • Have you looked on this answer? magento.stackexchange.com/questions/208592/…

    – user5198077
    Jan 25 '18 at 19:42











  • cron_schedule appears to be fine.

    – Bernard
    Jan 25 '18 at 20:12











  • which CPU you have? magento in developer mode?

    – MagenX
    Jan 25 '18 at 21:46











  • 4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

    – Bernard
    Jan 26 '18 at 13:23











  • Magento2 is in default mode.

    – Bernard
    Jan 26 '18 at 13:55













0












0








0








Our /var/log/messages is flooded with these records:



Jan 25 13:17:04 885589-DB1 systemd: Starting Session 570175 of user apache.


Which causes high CPU process:



1858 root 20 0 345084 315516 1392 R 95.1 0.5 7696:47 systemd-logind


Caused by these in the crontab:



* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/vhosts/html/site/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/update/cron.php >> /var/www/vhosts/html/site/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento setup:cron:run >> /var/www/vhosts/html/site/var/log/setup.cron.log


If I comment out the jobs, it stops.
Any ideas why these cronjobs are launching a lot of apache sessions?




Server version: Apache/2.4.6 (CentOS)



PHP 7.0.27 (cli) (built: Jan 4 2018 13:39:07) ( NTS )



Magento 2.1.10 - 2.2.2




EDIT



I apologize, priorities took me away. The issue has disappeared for unknown reasons. Most likely a 3rd party module has been updated.










share|improve this question
















Our /var/log/messages is flooded with these records:



Jan 25 13:17:04 885589-DB1 systemd: Starting Session 570175 of user apache.


Which causes high CPU process:



1858 root 20 0 345084 315516 1392 R 95.1 0.5 7696:47 systemd-logind


Caused by these in the crontab:



* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/vhosts/html/site/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/update/cron.php >> /var/www/vhosts/html/site/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/vhosts/html/site/bin/magento setup:cron:run >> /var/www/vhosts/html/site/var/log/setup.cron.log


If I comment out the jobs, it stops.
Any ideas why these cronjobs are launching a lot of apache sessions?




Server version: Apache/2.4.6 (CentOS)



PHP 7.0.27 (cli) (built: Jan 4 2018 13:39:07) ( NTS )



Magento 2.1.10 - 2.2.2




EDIT



I apologize, priorities took me away. The issue has disappeared for unknown reasons. Most likely a 3rd party module has been updated.







magento2 php-7 apache2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 '18 at 17:49







Bernard

















asked Jan 25 '18 at 19:32









BernardBernard

1308




1308












  • Have you looked on this answer? magento.stackexchange.com/questions/208592/…

    – user5198077
    Jan 25 '18 at 19:42











  • cron_schedule appears to be fine.

    – Bernard
    Jan 25 '18 at 20:12











  • which CPU you have? magento in developer mode?

    – MagenX
    Jan 25 '18 at 21:46











  • 4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

    – Bernard
    Jan 26 '18 at 13:23











  • Magento2 is in default mode.

    – Bernard
    Jan 26 '18 at 13:55

















  • Have you looked on this answer? magento.stackexchange.com/questions/208592/…

    – user5198077
    Jan 25 '18 at 19:42











  • cron_schedule appears to be fine.

    – Bernard
    Jan 25 '18 at 20:12











  • which CPU you have? magento in developer mode?

    – MagenX
    Jan 25 '18 at 21:46











  • 4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

    – Bernard
    Jan 26 '18 at 13:23











  • Magento2 is in default mode.

    – Bernard
    Jan 26 '18 at 13:55
















Have you looked on this answer? magento.stackexchange.com/questions/208592/…

– user5198077
Jan 25 '18 at 19:42





Have you looked on this answer? magento.stackexchange.com/questions/208592/…

– user5198077
Jan 25 '18 at 19:42













cron_schedule appears to be fine.

– Bernard
Jan 25 '18 at 20:12





cron_schedule appears to be fine.

– Bernard
Jan 25 '18 at 20:12













which CPU you have? magento in developer mode?

– MagenX
Jan 25 '18 at 21:46





which CPU you have? magento in developer mode?

– MagenX
Jan 25 '18 at 21:46













4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

– Bernard
Jan 26 '18 at 13:23





4x Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

– Bernard
Jan 26 '18 at 13:23













Magento2 is in default mode.

– Bernard
Jan 26 '18 at 13:55





Magento2 is in default mode.

– Bernard
Jan 26 '18 at 13:55










2 Answers
2






active

oldest

votes


















0














Try to disable all of your custom cron jobs, then enable it one by one and see which one is guilty - then inspect it's code.



Funny thing that CLI script causes huge web server load.
Does any of your cron jobs is making connection with any website on the same server? E.g. using curl, webapi?






share|improve this answer






























    0














    This issue has been resolved in the latest version 2.2.6



    upgrade to 2.2.6 or above latest stable version



    Here is the reference link:



    https://github.com/magento/magento2/issues/12863






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f211057%2fcron-causing-high-cpu%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Try to disable all of your custom cron jobs, then enable it one by one and see which one is guilty - then inspect it's code.



      Funny thing that CLI script causes huge web server load.
      Does any of your cron jobs is making connection with any website on the same server? E.g. using curl, webapi?






      share|improve this answer



























        0














        Try to disable all of your custom cron jobs, then enable it one by one and see which one is guilty - then inspect it's code.



        Funny thing that CLI script causes huge web server load.
        Does any of your cron jobs is making connection with any website on the same server? E.g. using curl, webapi?






        share|improve this answer

























          0












          0








          0







          Try to disable all of your custom cron jobs, then enable it one by one and see which one is guilty - then inspect it's code.



          Funny thing that CLI script causes huge web server load.
          Does any of your cron jobs is making connection with any website on the same server? E.g. using curl, webapi?






          share|improve this answer













          Try to disable all of your custom cron jobs, then enable it one by one and see which one is guilty - then inspect it's code.



          Funny thing that CLI script causes huge web server load.
          Does any of your cron jobs is making connection with any website on the same server? E.g. using curl, webapi?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 25 '18 at 20:47









          A.MaksymiukA.Maksymiuk

          473513




          473513























              0














              This issue has been resolved in the latest version 2.2.6



              upgrade to 2.2.6 or above latest stable version



              Here is the reference link:



              https://github.com/magento/magento2/issues/12863






              share|improve this answer



























                0














                This issue has been resolved in the latest version 2.2.6



                upgrade to 2.2.6 or above latest stable version



                Here is the reference link:



                https://github.com/magento/magento2/issues/12863






                share|improve this answer

























                  0












                  0








                  0







                  This issue has been resolved in the latest version 2.2.6



                  upgrade to 2.2.6 or above latest stable version



                  Here is the reference link:



                  https://github.com/magento/magento2/issues/12863






                  share|improve this answer













                  This issue has been resolved in the latest version 2.2.6



                  upgrade to 2.2.6 or above latest stable version



                  Here is the reference link:



                  https://github.com/magento/magento2/issues/12863







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 24 '18 at 11:43









                  shivanikokoshivanikoko

                  61




                  61



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f211057%2fcron-causing-high-cpu%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form