Find the answer to your Linux question:
Results 1 to 2 of 2
I have been working on this for a few hours now and still haven't been able to track down whats going on. I just switched servers and put a fresh ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    2

    Question Apache2 - have to restart apache2 process every 10 mins to clear /tmp directory....

    I have been working on this for a few hours now and still haven't been able to track down whats going on.
    I just switched servers and put a fresh debian install on with apache2 + custom suexec + php5(fcgi).
    now when i upload a file to the site it wont upload, so i tracked down the issue. its the /tmp directory that root tmp. its at 100% so i restart the /etc/init.d/apache2 process and the /tmp directory is automagically cleared to 20% used and i can upload again. so i figure ok its got to be a setting. i looked in all the conf files conf.d the php5 conf files and no where do i have a /tmp directory set. so i think OK I can build a cron to clear the tmp directory every 10 mins till i find the issue, but alas, when i go into the tmp directory There are NO files to delete!!! wtf. holy crap. and all that goodness, this is crazy, how can you have a tmp directory that is not being written to, from all i can see, so i think ok it might be a hard link, i checked, in all root and sub root directories no hard links to tmp, no soft links to temp either. and if i sit in my /tmp directory and do a df -h after some uploads its going from 20% so 23% and up, but i do ls -alh and nothing, then ls -al and watch bytes, nothing , so this is very strange. has anyone encountered something like this? is it possible that this is a hard link thats hidden somewhere or some other extreme function i have never heard of?
    thanks for anyone's help, i really appreciate it,
    -=Levi=-
    Monarch Digital Sys. Admin

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Posts
    2
    Figured the issue out it happened to be Xcache in php5 was using /tmp for cache so i couldnt see the files as they were still being used for processes. so i changed the xcache.mmap_path directory to a place in /home/tmp which has a ton more space than the small allocation for /tmp. hope this helps someone else out
    -=Levi=-
    Monarch Digital Sys Admin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •