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.