Clear Filters
Clear Filters

Webapp access error: all available session are in use

3 views (last 30 days)
I encountered the error message mentioned above when I initially opened a webapp, and even after reopening it, the message persisted for over 60 minutes. I'm curious about how we can enable multiple users to access the webapp applications simultaneously and why this error is persisting, considering all applications were closed an hour ago.

Answers (1)

Arun
Arun on 31 Oct 2023
Hey Junho,
I understand that you encounter an issue when multiple users access the webapp application simultaneously, resulting in the error message, “All available session are in use.”.
This error is likely due to settings in the webapps.config file.
There are 2 important config parameters to consider:
  1. “MaxWorkers”
  2. “MaxPrewarmedWorkers”
This error could be because “MaxWorkers” or “MaxPrewarmedWorkers” is not set to a high enough value.
By default, “MaxWorkers” is equal to the amount of GB of physical memory available to your system. When “MaxPrewarmedWorkers” is not set, it defaults to 1/3 of “MaxWorkers”.
One possible solution is to set an increased value for these two parameters. Following are the steps to do so:
  1. Access the file “webapps.config” at this directory: "C:\ProgramData\MathWorks\webapps\R20XXx\config\webapps.config" (replace XXx with the relevant release number)
  2. Set an increased value for “MaxWorkers” and “MaxPrewarmedWorkers” (ideally less than “MaxWorkers”).
  3. Restart the “MATLAB Web Apps R20XXx” service.
This would help you to resolve the session error, I hope the shared information proves helpful.

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!