The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_file_cache unloads cache and load increases.

Discussion in 'Workarounds and Optimization' started by konrath, Aug 17, 2013.

  1. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello

    I am using atop to monitor the performance of my server.

    I use Apache compiled with mod_file_cache for better performance and reduce server load.

    However I've noticed that when the cache is flushed the load increases.

    Anyone know why the cache is deleted?

    What should I set so that the cache is not clean?

    Thank you
    Marcelo Konrath
     
  2. GIANT_CRAB

    GIANT_CRAB Well-Known Member

    Joined:
    Mar 23, 2012
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Cache will be deleted when:
    • Apache restarts
    • File in the cache directory gets modified (modified can be edit or delete)
    • Cache reaches maximum capacity and must flush in order for other files to be cached.

    Also, an important thing to note is that CGI scripts (PHP/Perl/Ruby) cannot be cached via Apache modules.
     
  3. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Thank you GIANT_CRAB
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I wanted to point out the following guide is available for troubleshooting high loads:

    Troubleshooting high server loads on Linux servers

    You mentioned the load increased, so if for some reason it was not due to the cache flushing, the above URL is a good resource.

    Thank you.
     

Share This Page