/tmp becomes full due to eAccelerator files

Often /tmp becomes full due to eAccelerator files:

Eaccelerator often creates huge cache files often consuming the /tmp directory space. One work around is to change the eAccelerator cache directory from /tmp to another unmounted location, like “/eaccelerator_cache”. This can be achieved by changing the parameter “eaccelerator.cache_dir” in the server’s global php.ini. Currently it is set as ‘/tmp/eaccelerator’. Please refer the details pasted below.

sh-3.2# grep eaccelerator.cache_dir /usr/local/lib/php.ini

You can also set a cron job to clear the cache files from ‘/tmp/eaccelerator’ to prevent /tmp from being full. The cronjob can be as follows.

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

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: