Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    4

    Angry /tmp 100% full

    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
    Last edited by fvrioso; 11-02-2005 at 01:07 PM.

  2. #2
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    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. #3
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by fvrioso
    There is an /eaccelerator folder into /tmp ; can I delete it?
    Thanks
    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. #4
    Member celliott's Avatar
    Join Date
    Jan 2006
    Location
    United Kingdom
    Posts
    460

    Default

    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. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    May 2009
    Location
    India
    Posts
    8

    Default

    Thanks, we got one similar problem on our server & this helped us to fix it.
    24x7servermanagement.com
    Professional Server Management Services
    Server Management, Server Security, Server Monitoring.

  7. #7
    Member pcshost's Avatar
    Join Date
    Jun 2008
    Posts
    8

    Question 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. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2006
    Location
    Virginia Beach, VA
    Posts
    254
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If this is a continual issue, try increasing the size of the /tmp partition:

    Increasing the Size of tmpDSK (/tmp) :: The cPanel Admin

  9. #9
    Member pcshost's Avatar
    Join Date
    Jun 2008
    Posts
    8

    Default 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. #10
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    105

    Default

    Quote Originally Posted by pcshost View Post
    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.
    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?
    Last edited by MikeDVB; 04-11-2010 at 11:04 AM.
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  11. #11
    Member
    Join Date
    Apr 2010
    Posts
    5

    Default

    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. #12
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    105

    Default

    Quote Originally Posted by SoN9ne View Post
    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...
    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 :-)
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  13. #13
    Member
    Join Date
    Apr 2010
    Posts
    5

    Default

    Quote Originally Posted by MikeDVB View Post
    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 :-)
    I agree, that is why I decided to stop hijacking this thread and start my own. My thread is posted here: /dev/loop0 (/tmp) is 100% full

    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.

Similar Threads & Tags
Similar threads

  1. /dev/loop0 (/tmp) is 100% full
    By SoN9ne in forum Optimization
    Replies: 35
    Last Post: 02-05-2012, 10:39 PM
  2. tmp folder 100% full
    By blogmaster2003 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-08-2010, 07:55 AM
  3. Drive Critical: /dev/loop0 (/var/tmp) is 100% full
    By wowrack in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-08-2010, 09:53 AM
  4. /tmp 100% full - but uses only 63K of 95MB
    By Stream in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-20-2007, 08:35 PM
  5. /tmp says 100%, du says different?
    By myusername in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-18-2004, 08:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube