Webapp access error: all available session are in use
Afficher commentaires plus anciens

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.
Réponses (1)
Arun
le 31 Oct 2023
0 votes
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:
- “MaxWorkers”
- “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:
- Access the file “webapps.config” at this directory: "C:\ProgramData\MathWorks\webapps\R20XXx\config\webapps.config" (replace XXx with the relevant release number)
- Set an increased value for “MaxWorkers” and “MaxPrewarmedWorkers” (ideally less than “MaxWorkers”).
- Restart the “MATLAB Web Apps R20XXx” service.
This would help you to resolve the session error, I hope the shared information proves helpful.
Catégories
En savoir plus sur Problem-Based Optimization Setup dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!