Start a MATLAB Production Server Instance

Overview

This example shows how to install, configure, and start an instance of MATLAB® Production Server™.

To start a MATLAB Production Server instance:

  1. Install MATLAB Production Server.

  2. Install MATLAB Runtime.

  3. Create a server instance.

  4. Configure the server instance.

  5. Start the server instance.

Install MATLAB Production Server

To install MATLAB Production Server:

  1. Run the installer.

  2. Select License Manager for installation in the product list.

  3. When asked where to install MATLAB Production Server, enter the name of an empty folder.

    You need the path to the installation to complete the tutorial.

  4. Add the $MPS_INSTALL\script folder to your system PATH environment variable.

    $MPS_INSTALL represents your MATLAB Production Server installation folder.

Install MATLAB Runtime

If it is not already installed on your system, you must install the MATLAB Runtime. MATLAB Production Server requires the MATLAB Runtime.

To install a MATLAB Runtime:

  1. Download the MATLAB Runtime installer from http://www.mathworks.com/products/compiler/mcr.

  2. Run the MATLAB Runtime installer.

Configure the Server Instance

After you create a new server instance, you must configure it. The MATLAB Production Server configuration file, main_config, includes many parameters you can use to tune server performance. At a minimum, you must use the file to specify the location of the MATLAB Runtime you want to use with the server instance

To configure the server instance's default MATLAB Runtime:

  1. From the system command line, run mps-setup.

  2. Follow the directions to specify which MATLAB Runtime the server instances uses.

For more information about configuration options, see Edit the Configuration File.

Create a Server Instance

To create the server instance:

  1. Move to the folder where you want to create your server.

  2. Run the mps-new command.

    C:\tmp>mps-new prod_server_1 -v
    
  3. Verify the output.

    prod_server_1/.mps_version...ok
    prod_server_1/config/main_config...ok
    prod_server_1/auto_deploy/...ok
    prod_server_1/log/...ok
    prod_server_1/pid/...ok
    prod_server_1/old_logs/...ok
    prod_server_1/.mps_socket/...ok
    prod_server_1/endpoint/...ok

For more information on these folders, see Server Diagnostic Tools.

Start the Server

To start the server:

  1. Run the mps-start command.

    mps-start -C C:\tmp\prod_server_1
  2. Verify the server instance has started using the mps-status command.

    mps-status -C C:\tmp\prod_server_1
    'C:\tmp\prod_server_1' STARTED
     license checked out
Was this topic helpful?