I am using Magento 2 and my admin panel is loading very slowly, even after switching the store to production mode.
Here is what I have already done:
Set mode to production
php bin/magento deploy:mode:set production
Cleared cache
php bin/magento cache:flush
php bin/magento cache:clean
Recompiled code
php bin/magento setup:di:compile
Deployed static content
php bin/magento setup:static-content:deploy -f
Checked server resources (CPU and RAM look normal)
Disabled unused modules
Cleared browser cache
Even after doing all of this, the Magento admin dashboard takes 10–15 seconds to load, and almost every page inside the admin is slow.
Environment details
Magento version: (add your version, e.g., 2.4.6-p3)
PHP version: (e.g., PHP 8.1)
Server: (e.g., Apache/Nginx)
Hosting type: (shared/VPS/dedicated)
Redis: Enabled/Disabled
Elasticsearch/OpenSearch version: (if used)
My questions
What are the common reasons for slow admin performance in production mode?
Is there a way to pinpoint which part of the admin is causing the delay?
Are there specific server-side or Magento-side settings that improve admin speed?
Additional notes
Frontend speed is normal. Only the admin panel is slow.
No recent custom modules were installed.
No large logs or error messages found.