Discover Centmin Mod today
Register Now

Zend opcache on php 5.5 restarting every x minutes

Discussion in 'System Administration' started by pamamolf, Aug 29, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    I install and use zend opcache with an admin panel and all was great and fast but then i notice that every x (less than 30) minutes the cached files from 500 goes down to 100 and then up to 500 and it seems that is restarting :(

    And i have used 80MB of 256MB total opcache ram.

    I was read and i don't remember where that opcache has a mechanism and if don't get for a few minutes any request it thinks that something is wrong and is restarting ....

    Any ideas?
    My settings:
    opcache.memory_consumption=256
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.revalidate_freq=60
    opcache.fast_shutdown=1

    Thanks

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,508
    12,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,675
    Local Time:
    1:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh i moved this thread before re-reading the post - this with non-Centmin Mod panel setup ?
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes :)

    But i think it is a general problem on any setup...
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,508
    12,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,675
    Local Time:
    1:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Damn that was amazing info :)

    But i am afraid i will mess with it as it needs to rebuild and i have nginx in front of it and Cloudlinux and so on :(

    Thanks anyway :)
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok i did it and again the same from 500 cached files it goes down to 400...it seems like a ttl value or something else do that but i can't find it :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,508
    12,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,675
    Local Time:
    1:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    well you're on your own there figuring it out though

    fyi cached file count will go up and down when they expire just look at the restart times and uptime for stats to confirm it's been up

    Good luck :)
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok thanks George but there is not a ttl value to increase it ... :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,508
    12,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,675
    Local Time:
    1:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+