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.

/tmp 100% full

Discussion in 'Workarounds and Optimization' started by fvrioso, Nov 2, 2005.

  1. fvrioso

    fvrioso Registered

    Joined:
    Jun 2, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I'm having trouble with /tmp folder, i can not begin any session for example in joomla/mambo installations; what happen if I delete all archives into tmp folder?

    There is an /eaccelerator folder into /tmp ; can I delete it?

    current disk usage is:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda3 145G 12G 126G 9% /
    /dev/sda1 99M 36M 59M 38% /boot
    none 502M 0 502M 0% /dev/shm
    /usr/tmpDSK 243M 230M 0 100% /tmp
    /tmp 243M 230M 0 100% /var/tmp

    I need help as soon as possible.

    Thanks
     
    #1 fvrioso, Nov 2, 2005
    Last edited: Nov 2, 2005
  2. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Your tmp partition is very small.. you sould remove the changes that /script/securetmp did.. and secure the new partition "by hand" (not using that script) setting as space at least 500 MB. Also check what kind of files do you have there... if you have GZIP activated.. it may be that.

    Visit eth0's website and follow his "securing tmp" guide at www.eth0.us

    You can delete all session* files.. be careful deleting other kind of files or folders.

    Good luck.
     
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    This is likely where eaccelerator is writing it's temp files... this'll fill up your tmp folder (and keep it full) REALLY fast. I moved my eaccelerator folder elsewhere (hasn't seemed to make any performance issue) and now my tmp folder's size has been fine. Also, check around here for other posts on controlling the cached files in your eaccelerator folder (may be referred to as turk mmcache in some posts). I use a cron job to clear out cached files if they haven't been accessed in a couple days, for instance.

    Oh, one more thing... if you move your eaccelerator folder, you'll need to change the path to the new location in your php.ini file and restart the webserver.

    cheers,
     
  4. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    I have cleared out my /tmp and /var/tmp yet my server status script still shows 401MB/485MB is being used up.

    Am I removing the wrong things, what could be causing this?
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    IF you delete files and they don't go from df then you've deleted files that are open by processes. You need to restart whichever processes had those files open in the first place, typically httpd. Good place to start:

    lsof | grep /tmp
     
  6. Srv24x7

    Srv24x7 Member

    Joined:
    May 22, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Thanks, we got one similar problem on our server & this helped us to fix it.
     
  7. pcshost

    pcshost Member

    Joined:
    Jun 17, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Same w/ my server but I have to ask this...

    Will deleting the temp files in the eaccelerator folder cause issues? Especially if they were from today? I'm not sure how to delete a folder and put the exception in to ignore any file from today.
     
  8. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
  9. pcshost

    pcshost Member

    Joined:
    Jun 17, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Deleting tmp files that haven't been accessed for 24 hrs.

    Thanks Vanessa. What I did was create a cron job (crontab -e)

    02 1 * * * find /tmp/eaccelerator ! -mtime -1 -type f -exec rm {} \;

    I figured if this doesn't give me enough disk space each day I'd double the tmp dir to 1GB on top of running the command, but so far, so good.
     
  10. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Indiana, USA
    Generally I set /tmp to 1gb to 2gb depending on how many sites are going to be on the server and how much work I want it to do. Better to have some extra space than to have /tmp fill up and things crashing (like MySQL).

    Clearing files from /tmp/eaccelerator older than a day probably won't hurt but doesn't eaccelerator clear it's own cache files periodically?
     
    #10 MikeDVB, Apr 11, 2010
    Last edited: Apr 11, 2010
  11. SoN9ne

    SoN9ne Member

    Joined:
    Apr 20, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I too am having this error. I have increases my tmp size to a GB and I still get this about every month. Is there a fix for this? What causes this? I cannot be doing this every month...
     
  12. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Indiana, USA
    Look and see what is filling it up - you've asked an open-ended question nobody here can answer. It's like if I were to complain the cabinet over the sink in my kitchen kept filling up and I asked you why... You wouldn't know without at the least looking into the cabinet :)
     
  13. SoN9ne

    SoN9ne Member

    Joined:
    Apr 20, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I agree, that is why I decided to stop hijacking this thread and start my own. My thread is posted here: http://forums.cpanel.net/f189/dev-loop0-tmp-100-full-154501.html

    I listed the files that were large in the tmp folder, there were 4, but I still cannot isolate the cause. I am hoping that someone will know what these files are from so I can address the issue.
     
Loading...

Share This Page