Hey all –
First thanks for any guidance and help. I recently updated a Magento community 2.4.3-p1 site to 2.4.4. Every morning, my server resources spike out of control due to a cron that never seems to complete. I setup the cron tasks in the admin as separate processes in hopes to see which one is stalling. Doing so, I narrowed it down to ‘/opt/cpanel/ea-php74/root/usr/bin/php /public_html/bin/magento cron:run –group=default –bootstrap=standaloneProcessStarted=1’.
In the /var/logs folder, nothing seems out of the ordinary. Cron.log shows things executing without fails. Here’s a snippet from that:
[2022-07-21T16:05:02.508924+00:00] main.INFO: Cron Job catalog_product_outdated_price_values_cleanup is run [] [] [2022-07-21T16:05:02.518575+00:00] main.INFO: Cron Job indexer_reindex_all_invalid is run [] [] [2022-07-21T16:05:02.524009+00:00] main.INFO: Cron Job indexer_reindex_all_invalid is successfully finished. Statistics: {"sum":0.0055520534515381,"count":1,"realmem":0,"emalloc":403624,"realmem_start":201850880,"emalloc_start":186459744} [] [] [2022-07-21T16:05:02.525873+00:00] main.INFO: Cron Job indexer_update_all_views is run [] [] [2022-07-21T16:05:02.571027+00:00] main.INFO: Cron Job catalog_product_outdated_price_values_cleanup is successfully finished. Statistics: {"sum":0.062220811843872,"count":1,"realmem":0,"emalloc":5493480,"realmem_start":201850880,"emalloc_start":186922048} [] [] [2022-07-21T16:05:02.573037+00:00] main.INFO: Cron Job catalog_product_frontend_actions_flush is run [] [] [2022-07-21T16:05:02.573462+00:00] main.INFO: Cron Job catalog_product_frontend_actions_flush is successfully finished. Statistics: {"sum":0.00041794776916504,"count":1,"realmem":0,"emalloc":1512,"realmem_start":201850880,"emalloc_start":192441368} [] [] [2022-07-21T16:05:02.576134+00:00] main.INFO: Cron Job sales_grid_order_async_insert is run [] [] [2022-07-21T16:05:02.576205+00:00] main.INFO: Cron Job sales_grid_order_async_insert is successfully finished. Statistics: {"sum":6.6995620727539e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":192546136} [] [] [2022-07-21T16:05:02.577783+00:00] main.INFO: Cron Job sales_grid_order_invoice_async_insert is run [] [] [2022-07-21T16:05:02.577851+00:00] main.INFO: Cron Job sales_grid_order_invoice_async_insert is successfully finished. Statistics: {"sum":6.2942504882812e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":192550632} [] [] [2022-07-21T16:05:02.579291+00:00] main.INFO: Cron Job sales_grid_order_shipment_async_insert is run [] [] [2022-07-21T16:05:02.579357+00:00] main.INFO: Cron Job sales_grid_order_shipment_async_insert is successfully finished. Statistics: {"sum":6.8902969360352e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":192554280} [] [] [2022-07-21T16:05:02.580759+00:00] main.INFO: Cron Job sales_grid_order_creditmemo_async_insert is run [] [] [2022-07-21T16:05:02.580822+00:00] main.INFO: Cron Job sales_grid_order_creditmemo_async_insert is successfully finished. Statistics: {"sum":5.8889389038086e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":192558056} [] [] [2022-07-21T16:05:02.590635+00:00] main.INFO: Cron Job sales_send_order_emails is run [] [] [2022-07-21T16:05:02.590710+00:00] main.INFO: Cron Job sales_send_order_emails is successfully finished. Statistics: {"sum":7.3909759521484e-5,"count":1,"realmem":0,"emalloc":1032,"realmem_start":201850880,"emalloc_start":194432768} [] [] [2022-07-21T16:05:02.594103+00:00] main.INFO: Cron Job sales_send_order_invoice_emails is run [] [] [2022-07-21T16:05:02.594171+00:00] main.INFO: Cron Job sales_send_order_invoice_emails is successfully finished. Statistics: {"sum":6.5088272094727e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":194794448} [] [] [2022-07-21T16:05:02.595750+00:00] main.INFO: Cron Job indexer_update_all_views is successfully finished. Statistics: {"sum":0.069869041442871,"count":1,"realmem":0,"emalloc":2644072,"realmem_start":201850880,"emalloc_start":186865648} [] [] [2022-07-21T16:05:02.597415+00:00] main.INFO: Cron Job sales_send_order_shipment_emails is run [] [] [2022-07-21T16:05:02.597489+00:00] main.INFO: Cron Job sales_send_order_shipment_emails is successfully finished. Statistics: {"sum":7.2002410888672e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":195071648} [] [] [2022-07-21T16:05:02.600842+00:00] main.INFO: Cron Job sales_send_order_creditmemo_emails is run [] [] [2022-07-21T16:05:02.600913+00:00] main.INFO: Cron Job sales_send_order_creditmemo_emails is successfully finished. Statistics: {"sum":6.9141387939453e-5,"count":1,"realmem":0,"emalloc":1072,"realmem_start":201850880,"emalloc_start":195395760} [] [] [2022-07-21T16:05:02.602776+00:00] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2022-07-21T16:05:02.602972+00:00] main.INFO: Cron Job outdated_authentication_failures_cleanup is successfully finished. Statistics: {"sum":0.00019001960754395,"count":1,"realmem":0,"emalloc":1448,"realmem_start":201850880,"emalloc_start":195416760} [] [] [2022-07-21T16:05:02.604569+00:00] main.INFO: Cron Job bulk_cleanup is run [] [] [2022-07-21T16:05:02.604786+00:00] main.INFO: Cron Job bulk_cleanup is successfully finished. Statistics: {"sum":0.00020813941955566,"count":1,"realmem":0,"emalloc":1608,"realmem_start":201850880,"emalloc_start":195423792} [] [] [2022-07-21T16:05:02.606625+00:00] main.INFO: Cron Job catalog_product_attribute_value_synchronize is run [] [] [2022-07-21T16:05:02.607026+00:00] main.INFO: Cron Job catalog_product_attribute_value_synchronize is successfully finished. Statistics: {"sum":0.00039291381835938,"count":1,"realmem":0,"emalloc":21248,"realmem_start":201850880,"emalloc_start":195463568} [] [] [2022-07-21T16:05:02.608769+00:00] main.INFO: Cron Job newsletter_send_all is run [] [] [2022-07-21T16:05:02.611149+00:00] main.INFO: Cron Job newsletter_send_all is successfully finished. Statistics: {"sum":0.0023641586303711,"count":1,"realmem":0,"emalloc":388192,"realmem_start":201850880,"emalloc_start":195491848} [] [] [2022-07-21T16:05:02.613126+00:00] main.INFO: Cron Job amasty_customform_process_form_scheduling is run [] [] [2022-07-21T16:05:02.614490+00:00] main.INFO: Cron Job amasty_customform_process_form_scheduling is successfully finished. Statistics: {"sum":0.001349925994873,"count":1,"realmem":0,"emalloc":182088,"realmem_start":201850880,"emalloc_start":195906704} [] [] [2022-07-21T16:05:02.657029+00:00] main.INFO: Cron Job consumers_runner is run [] [] [2022-07-21T16:05:02.661406+00:00] main.INFO: Cron Job consumers_runner is successfully finished. Statistics: {"sum":0.0045018196105957,"count":1,"realmem":0,"emalloc":202224,"realmem_start":201850880,"emalloc_start":186721608} [] [] [2022-07-21T16:05:02.671728+00:00] main.INFO: Cron Job amasty_base_daily_send_system_info is run [] [] [2022-07-21T16:05:02.672667+00:00] main.INFO: Cron Job amasty_base_daily_send_system_info is successfully finished. Statistics: {"sum":0.0010697841644287,"count":1,"realmem":0,"emalloc":62840,"realmem_start":201850880,"emalloc_start":186511304} [] [] [2022-07-21T16:05:02.674174+00:00] main.INFO: Cron Job amasty_base_instance_registration is run [] [] [2022-07-21T16:05:02.674773+00:00] main.INFO: Cron Job amasty_base_instance_registration is successfully finished. Statistics: {"sum":0.00059199333190918,"count":1,"realmem":0,"emalloc":30472,"realmem_start":201850880,"emalloc_start":186587152} [] []
I’ve made sure that the theme I’m using (Porto) and any extensions installed are fully up to date. I also made sure to re-compile, clear cache, etc. I also emptied the cron table in the database. Without fail, the same cron is stuck in the morning and I have to kill the task. Once I do that, my server resources go back to normal. From the Magento admin side, orders, products and whatever else all seem to be functioning properly.
Any ideas why this cron never completes / drops off? I’m at a loss as I have other 2.4.4 sites that do not exhibit this issue and those sites reside on slower servers.
submitted by /u/fquick
[link] [comments]