Quantcast
Viewing all articles
Browse latest Browse all 3737

Ideal to use App.AutoQuit = True in web apps to free up memory?

I posted a while ago about my web apps on Xojo Cloud were showing 80%+ memory usage. I found that after deleting several test apps and restarting the server brought the server memory down to ~15%

I periodically check the server memory usage, and it has been creeping up there, around 60%. When I see this, I restart the server, and the memory drops back down

I was checking out the docs and found AutoQuit. Would this be a worthwhile add to my web apps? Setting App.AutoQuit = True in the App.Opening?

If I am reading the doc correctly, once all users have ended their sessions and no one currently is on the app, it will quit, freeing up memory that might be held up, which would relieve me from needing to manually restart the server. It is common for my users to all be out of all my web apps during the middle of the night. Then come morning, when the first user connects to the app, this “restarts” the server. Is this an accurate assumption?

Some of my users don’t “log out” of the app and might just close the tab/browser. Does this still count as their session ending?

13 posts - 9 participants

Read full topic


Viewing all articles
Browse latest Browse all 3737

Trending Articles