If you are using Magento 2.X and running some command using SSH and getting this “Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes) ” then one is a memory related problem. If you want to run Magento 2.X smoothly then please allot at least 2GB RAM otherwise you may get problem.
Now coming to topic how to fix this Problem
“Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes) ”
You can use the command below as per your need :
php -d memory_limit=2G bin/magento setup:upgrade
php -d memory_limit=2G bin/magento setup:static-content:deploy -f
php -d memory_limit=2G bin/magento setup:di:compile
php -d memory_limit=2G bin/magento indexer:reindex
php -d memory_limit=2G bin/magento cache:flush
php -d memory_limit=2G bin/magento cache:clean && php bin/magento cache:flush
php -d memory_limit=2G bin/magento catalog:image:resize
Extension status, enable and disable
php bin/magento module:status
php bin/magento module:disable Mageplaza_SocialLogin
php bin/magento module:enable Magento_Weee