ten thousands sessions files?!
-
in the
/data/storage/framework/sessionsfolder there are currently 69.831 items, each about 650 bytes all together now 47.1 MB.Is this normal?
We added now only about 110 assets and only 1 active user and 2 users just looked around for a few minutes.
-
That indeed does not look right. Can you see if you adjust the
SESSION_LIFETIME=12000to be say 10 in/app/data/envwould this eventually purge some? Tbh I am not 100% what the value is, but I assume it is seconds.If those are not cleaned up, we may have to put that session folder in
/tmpwhich is purged automatically after some time. -
That indeed does not look right. Can you see if you adjust the
SESSION_LIFETIME=12000to be say 10 in/app/data/envwould this eventually purge some? Tbh I am not 100% what the value is, but I assume it is seconds.If those are not cleaned up, we may have to put that session folder in
/tmpwhich is purged automatically after some time.@nebulon thanks! I've changed it to 10 and after some time it got cleared, although in a few minutes there are already 120 new ones without hardly any activity
update: while clicking around in the UI and checking files again they get cleared, amount is 79 at this moment
-
I donβt think this is a permanent solution as a user gets really quick logged out

-
I can move the sessions to the database or redis, since it's a standard laravel app.
-
@imc67 I moved the sessions to redis in the new package.
-
@girish said in ten thousands sessions files?!:
@imc67 I moved the sessions to redis in the new package.
This seems to work!!! After update there came no more new session files, after half an hour I deleted all session files from folder and no new ons appeared. Also returned to 12000.
It all looks stable and fast!
Thanks @girish !!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login