You can create, start, and stop MATLAB® Production Server™ instances from the command line. Use the configuration properties to tailor each instance to a specific task or use.
http | URL that server instance uses for insecure connections |
http-linger-threshold | Amount of data the server instance discards after an HTTP error and before the server instance closes the TCP connection |
mcr-root | Location of a MATLAB Runtime installation |
auto-deploy-root | Folder the server instance scans for deployable archives |
extract-root | Root folder used to store contents of deployed archives |
num-workers | Maximum number of workers allowed to process work simultaneously |
worker-restart-interval | Time interval at which a server instance stops and restarts its workers |
worker-restart-memory-limit | Size threshold at which to consider restarting a worker |
worker-restart-memory-limit-interval | Interval for which a worker can exceed its memory limit before restart |
worker-memory-check-interval | Interval at which workers are polled for memory usage |
cors-allowed-origins | Specify the domain origins from which clients are allowed to make requests to the server |
request-timeout | Duration after which the request times out and gets deleted after reaching a terminal state |
response-archive-root | Path to location where responses are archived |
response-archive-limit | Maximum disk space available to the server process for archiving |
server-memory-threshold | Size threshold of server process at which action needs to be taken to manage responses |
server-memory-threshold-overflow-action | Action to be taken when memory size threshold of server process has been breached |
request-size-limit | Set the maximum size of a request |
use-single-comp-thread | Start MATLAB Runtime with a single computational thread |
num-threads | Number of request-processing threads within the server instance |
disable-control-c | Disable keyboard interruptions for server instance |
user-data | Associate MATLAB data value with string key |
mps-setup | Set up a server environment |
mps-new | Create a server instance |
mps-start | Start a server instance |
mps-stop | Stop a server instance |
mps-restart | Stop and start a server instance |
mps-service | Create or modify a Windows service for a server instance |
Specify the Default MATLAB Runtime for New Server Instances
Each server that you create with MATLAB Production Server has its own configuration file that defines various server management criteria.
Create an instance of a server with MATLAB Production Server
Set up the main_config
file with
custom parameters for your server configuration
Specify the MATLAB Runtime for a Server Instance
To specify the installed location of the MATLAB Runtime for your server instance:
Start a server instance
Share the deployable archive using MATLAB Production Server
Support Multiple MATLAB Versions
MATLAB Production Server instances can use multiple MATLAB Runtime versions to support deployable archives created with multiple versions of MATLAB
Set conditions determining when a server instance restarts worker processes
Install a Server Instance as a Windows Service
Making a server instance a Windows® service is an easy way to have the instance start when the host machine boots.
The role of the server in MATLAB Production Server software
Impact of Server Configurations on Processing Asynchronous Requests
Explanation of how server configurations impact execution of asynchronous requests.