[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rapidly proliferating sess files in /tmp, eating inodes



On 5/23/2014 11:41 PM, Richard Hector wrote:
On 24/05/14 12:27, Jerry Stuckle wrote:
So, where is it storing files now?  Just because they aren't in /tmp
doesn't mean they don't exist - and won't eventually use up your inodes.

Except that if they're in the 'normal' place (/var/lib/php5), there's
probably a cronjob (/etc/cron.d/php5) to clean up the stale ones.

Richard



Richard,

No, this is not the "normal" place. These are considered temporary files, and if there is no entry in the php.ini files, they go into the system temporary directory (which *generally* is /tmp, but that's why I asked).

And no, there is no cron job to clean up old session files. After they have expired, they are eligible for cleanup, but this will not occur until PHP's session cleanup code runs (which is dependent on settings in the php.ini file).

Jerry


Reply to: