skip to Main Content

PHP Warning: session_start(): Unable to clear session lock record in
/var/www/efs/html/v43/Api/PortalApi/PortalApi.php on line 39

When multiple request are made simultaneously, the above issue occurs in one of our dev environment but other environments are working fine. could not resolve the reason for it.

2

Answers


  1. Chosen as BEST ANSWER

    We fixed the issue, the problem -> in a recent code change in dev environment multiple logs was added in the code for testing configuration, the writing of multiple logs directly to efs caused the slow down


  2. Your problem was the user concurrency.

    Setting the following ini settings (also from PHP directly) can help to mitigate this issue on a high load project

    I recommend disable session.lazy_write in php.ini

    You can try this too:

    ini_set('memcached.sess_lock_retries', 10);
    ini_set('memcached.sess_lock_wait_min', 1000);
    ini_set('memcached.sess_lock_wait_max', 2000);
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search