Post by beeman » Tue Apr 15, 2014 2:10 pm

I've been running my server smoothly for more than half a year now but recently I had a problem with inodes maxing out in the /tmp directory. I noticed there were 100,000s of session files from my opencart website and they were not being deleted.

I noticed /var/tmp and /tmp contain the exact same session files as well. The only changes I've made on this server was installing csf, could csf be the cause of this problem?

Anyone experience this before? Any help is greatly appreciated, thanks for reading!

Newbie

Posts

Joined
Tue Nov 13, 2012 11:12 pm

Post by rph » Tue Apr 15, 2014 2:18 pm

They'll be automatically cleaned up but it will be dependent on your system setup. If you're using an older OpenCart version check the value for session.gc_maxlifetime in php.ini. 1.5.4 and earlier had a lifetime of 4+ months.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by beeman » Wed Apr 16, 2014 12:57 pm

I just checked and it was set at 12,000,000 (approx. 4 months) what is the recommended settings now? is one month okay?

Cheers

Newbie

Posts

Joined
Tue Nov 13, 2012 11:12 pm

Post by rph » Wed Apr 16, 2014 4:13 pm

I'd put it for a couple hours, maybe a day or two on the long end. Current setting in the github master is 3600 (one hour).

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 81 guests