How can I achieve this? I just had to restart my app as I had 43 clients connected to it though no one was on the website (according to Mixpanel and GA realtime analytics). It seems memory isn’t released and my 512 MB on Galaxy were full, so the app become unresponsive and unavailable (red status for container at Galaxy).
I’d like to automatically kick out user after 30 minutes of inactivity, also for security reasons (like many other websites do).
How can this be achieved, I’m pretty sure others have come across the same problem already.
There’s a package on atmosphere called userstatus or something like that. I’d check out the code how they do it seeing if user is idle. Worth a shot. But inactive really depends on what you consider inactive. Not performing any actions via methods, not calling any frontend methods, not doing anything at all, i. e. no mouse movement?
Completely depends on how you are managing data subscriptions, how much data is being sent to the clients, how much you are processing etc… Way too many variables to make a guess with the limited detail you gave. Although 43 concurrent users on one server does sound very low. Install Kadira and see what is holding your app back.
I wonder how you can use Kadira to do all this optimization? I’ve installed the free version and apart from some nice graphs, pub/sub and methods timing it’s unclear to me how one can use Kadira to solve the problem that @vikr00001 has. Are there some training videos available? I’ve seen only one from Kadira which wasn’t really clear to me, but to Arunoda it’s probably easy as he designed the app (same way as my own app is so natural to me and others won’t understand fully either).