MATLAB Answers

1

Manage sessions of web apps

Asked by Chris Oreinos on 22 Jul 2019
Latest activity Commented on by Kojiro Saito on 10 Sep 2019
I recently deployed a web app and asked some colleagues to try it. It seems that they often get the "All available sessions are in use. Try again at a later time" error, although I wouldn't have expected anything close to 32 concurrent sessions. Are there ways to:
  1. See and manage all active sessions? Something like a session manager.
  2. Force sessions to timeout even when the user is inactive on the app, without having to close the browser, get the computer to sleep mode, etc?

  1 Comment

I'm experiencing a similar issue - it seems like only one person can use the app at a time, with a minimum of a 5 minutes break between sessions.

Sign in to comment.

Products


Release

R2018b

1 Answer

Answer by Kojiro Saito on 31 Jul 2019
 Accepted Answer

  1. There is no session manager in WebApps Server as of R2019a. You can find incoming connection and exit from Web App Server log files (default location in Windows is C:\ProgramData\MathWorks\webapps\R2019a\logs). But I think it's hard to understand how many current sessions are.
  2. You can set timeout from Web App Server configurations. By default, it is set to 5 minutes. For detail please see the sesion timeout of this document (Configure MATLAB Web App Server).

  2 Comments

Thank you!
For some reason though the server supports only one session at a time, which is not enough for our needs. Is there any way to increase this number?
Kojiro Saito on 10 Sep 2019
No, Web Apps Server supports simultaneous multiple sessions. You can change maximum sessions by increasing MaxWorkers in $MATLAB_Runtime\bin\win64\webapps.config file and restart Web Apps Server. Though, as of R2019a, maximum sessions is 32 as described in this document.

Sign in to comment.