We are using Magento EE and are seeing very long times for Mage_Core_Model_Session_Abstract_Varien::start method. We tried using Memcached and Redis for session storage both with the same result.

Is this normal? Is this a New Relic problem? Any ideas how to fix it?

Screenshots below: Memcached session Redis session

I will be very grateful for any suggestion.

  • if you use DB for session - does it take long? Commented Feb 18, 2017 at 15:57

1 Answer 1


There is multiple issues for this case.

First Magento recommend Memcache for M2, I suppose the same for M1 : http://devdocs.magento.com/guides/v2.0/config-guide/memcache/memcache.html We had experiment this issue with Redis and we change session_save to db.

The second, is located here : Mage_Core_Model_Resource_Session::gc. Randomly Magento clean session. This clean cause a lock. A solution is to disable this random clean and use a cron to do the job (overload this class and change $_automaticCleaningFactor value to 0). This works great for us (with db).

Hope this help,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.