I’m facing an issue with Magento 2 where saving products from the admin panel is taking a long time (sometimes 20–40 seconds). This happens even after switching all indexers to Update on Schedule and enabling production mode.
Environment Details:
Magento Version: 2.4.x
PHP Version: 8.1
Server: Nginx + PHP-FPM
Redis for: Cache + Session
MySQL: 8.0
Elasticsearch/OpenSearch: Enabled and running
Indexers status: All are valid and set to Update on Schedule
Cron jobs: Running every minute
What I’ve Tried:
Cleared cache and reindexed
Disabled third-party extensions one by one
Enabled developer logs and checked var/log/debug.log
Verified DB slow queries via SHOW PROCESSLIST
Confirmed no cron errors
Observations:
The delay happens only when saving Configurable Products.
Simple product save is much faster.
CPU and memory usage remain normal during save request.
No visible heavy DB query in slow query log.
Questions:
What else can cause slow product saving in Magento 2 admin even when indexers are scheduled?
Are there known issues related to configurable product attribute processing?
Is there a recommended profiling method (Blackfire, Xdebug, etc.) specifically for admin actions?
Can a misconfigured extension still impact performance even if disabled?
Any guidance or steps to further diagnose or optimize the product save performance would be appreciated.