Welcome to Centmin Mod Community
Become a Member

Zend opcache on php 5.5 restarting every x minutes

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

  1. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:43 PM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,145
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    7:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh i moved this thread before re-reading the post - this with non-Centmin Mod panel setup ?
     
  3. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:43 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes :)

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

    eva2000 Administrator Staff Member

    30,145
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    7:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  5. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:43 PM
    Nginx-1.13.x
    MariaDB 10.1.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 Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:43 PM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,145
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    7:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    12:43 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok thanks George but there is not a ttl value to increase it ... :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,145
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    7:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1