Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

ten thousands sessions files?!

Scheduled Pinned Locked Moved Solved Snipe-IT
7 Posts 3 Posters 255 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • imc67I Offline
    imc67I Offline
    imc67 translator
    wrote on last edited by
    #1

    in the /data/storage/framework/sessions folder 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.

    1 Reply Last reply
    0
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    wrote on last edited by
    #2

    That indeed does not look right. Can you see if you adjust the SESSION_LIFETIME=12000 to be say 10 in /app/data/env would 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 /tmp which is purged automatically after some time.

    imc67I 1 Reply Last reply
    0
  • imc67I Offline
    imc67I Offline
    imc67 translator
    replied to nebulon on last edited by imc67
    #3

    @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

    1 Reply Last reply
    0
  • imc67I Offline
    imc67I Offline
    imc67 translator
    wrote on last edited by
    #4

    I don’t think this is a permanent solution as a user gets really quick logged out 😉

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #5

    I can move the sessions to the database or redis, since it's a standard laravel app.

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #6

    @imc67 I moved the sessions to redis in the new package.

    imc67I 1 Reply Last reply
    1
  • imc67I Offline
    imc67I Offline
    imc67 translator
    replied to girish on last edited by
    #7

    @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 !!!

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.