Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    14

    Default How to set quota on /tmp/eaccelerator

    Eaccelerator keeps filling up my /tmp partition, which wrecks havoc on the rest of my server.

    Is there a way to either:
    • configure eaccelerator to limit the amount of disk space it uses
    • configure a disk quota for the directory /tmp/eaccelerator that deletes old files after the quota has been reached

    Cheers,
    Steven…

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    285

    Default

    You may have tmpwatch on your system. The cron for that is run daily:

    vi /etc/cron.daily/tmpwatch

    In there, you can set the max amount of hours for keeping an old file. Lowering this, will clear out all your old cache files.

    Another way, is to run a command like below in the tmp folder:

    find eaccelerator -mtime +30 -exec rm {} \;

    It will clear out any eacceletator files older than 30 days. Use that command carefully though!
    Last edited by ChrisRHS; 06-03-2009 at 03:51 PM.

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    14

    Default

    Thanks Chris.

    I know about tmpwatch, but it doesn't solve the problem. I want the system to delete files once the directory reaches a certain size, not once the files inside it reach a certain age.

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    110

    Default

    Then write yourself a script and run it hourly from cron.

    #!shell
    #
    check disk usage of directory
    if (usage > a number)
    delete files
    fi

  5. #5
    Member
    Join Date
    Nov 2007
    Posts
    110

    Default

    Or do what I do, make /tmp bigger.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    14

    Default

    Hi everyone,

    I get that there are a million ways to crack this nut, and that shell scripts + cron can get 'er done, but I have to believe that, like cPanel sets per-user-directory quotas, there should be a way to set a bonafide quota on /tmp/eaccelerator.

    Does anyone know how to use the quota approach to solve the problem of /tmp/eaccelerator filling up the /tmp directory?

Similar Threads & Tags
Similar threads

  1. Option to set Usage/Quota in Email Accounts in kb instead of MB
    By Nick_A in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 07-09-2011, 06:38 AM
  2. Really need eAccelerator Stable version, but not this problematic eAccelerator 0.9.6
    By virtualreality in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-21-2010, 03:56 PM
  3. Pre-set Mail Quota Limit
    By eseepanel in forum E-mail Discussions
    Replies: 1
    Last Post: 03-10-2009, 01:29 PM
  4. WARNING: Latest EA update changes eaccelerator cache_dir to /tmp
    By wizzy420 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-04-2008, 01:16 AM
  5. can't set quota above 1,000meg
    By matt621 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2004, 06:37 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube