Portal Home > Knowledgebase > Articles Database > tmp disk full with in 20-30min
tmp disk full with in 20-30min
Posted by onel0ve, 12-07-2011, 11:52 PM |
tmp disk full with in 20-30min
using eaccelerator + cpanel how to fix this
|
Posted by ArturasLIX, 12-08-2011, 03:31 AM |
Hello,
what is the size of /tmp partition? What data used all the size? Is it eAccelerator created those files? Is it php sessions files? Perhaps you need to change eAccelerator settings, also you can try to use tmpwatch to clean up /tmp partition. But it is not recommended for such short term.
|
Posted by onel0ve, 12-08-2011, 03:32 AM |
after checking its because of eAccelerator
eAccelerator creating huge cache files on tmp folder
is there anyway to clean eAccelerator cache every 30min
|
Posted by ArturasLIX, 12-08-2011, 03:44 AM |
Without changing eAccelerator settings you can try to clean /tmp dir with a cronjob every 30 or less minutes. The command could be something like this:
|
Posted by Martin-D, 12-08-2011, 03:46 AM |
Or move the cache location to /home
|
Posted by onel0ve, 12-08-2011, 03:46 AM |
now i move eaccelerator to /home dir because of low tmp diskspace so code will be
right ??
dnt need to make cron using crontab -e ??
|
Posted by ArturasLIX, 12-08-2011, 03:49 AM |
Don't trash /home directory itself with eAccelerator files. Create separate directory in /home, for instance /home/tmp/ or something like this so eAccelerator will write it's files in there.
And yes you have to add cronjob with crontab -e, or put shell script to /etc/cron.d/
|
Posted by onel0ve, 12-08-2011, 04:02 AM |
now i move eaccelerator to /home/tmp/eaccelerator dir
so now code will be like this ??
right ??
dnt need to make cron using crontab -e ??
|
Posted by Martin-D, 12-08-2011, 04:18 AM |
I'd suggest /home/eAccelerator - that makes the most sense.
Also, if it's now on the /home partition, there's no need to empty it constantly. I'd question why you're doing this anyway seeing as it's supposed to cache the data. Why bother using it if you're just going to wipe it all out?
|
Posted by CrocWeb, 12-08-2011, 04:21 AM |
Correct, you should not empty it every 20-30 minutes. The whole purpose is to cache the data.
|
Posted by onel0ve, 12-08-2011, 04:27 AM |
oh i was tried empty when it was on tmp dir
ok nvm
basically how much space required for eAccelerator
|
Posted by Martin-D, 12-08-2011, 04:28 AM |
Depends on what sites are using it and what's being cached.
Leave it running for a while as-is and located in the homedir and you'll soon find out. Space shouldn't be an issue though.
|
Posted by onel0ve, 12-08-2011, 04:30 AM |
ok thanks everyone
|
Add to Favourites Print this Article
Also Read
DEADnow (Views: 800)