Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    56
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. konrath

    konrath Well-Known Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice