To change server properties for an on-premise installation of MATLAB®
Production Server™, edit the
main_config configuration file that
corresponds to your specific server instance. The server configuration file is located
For a server deployment on the cloud, see Edit the Configuration File.
When editing the server configuration, remember these coding considerations:
Each server has its own server configuration file.
You enter only one configuration property and related options per line. Each
configuration property entry starts with two dashes
Any line beginning with a pound sign (
#) is ignored as a
Lines of white space are ignored.
property to set the default port number on which the server
listens for client requests.
property to set the number of concurrent MATLAB execution requests that can be processed simultaneously.
property to set the number of request-processing threads
available to the master server process.
For .NET Clients, the HTTP 1.1 protocol restricts the maximum number of concurrent connections between a client and a server to two.
This restriction only applies when the client and server are connected remotely. A local client/server connection has no such restriction.
To specify a higher number of connections than two for remote connection, use
the NET classes
System.Net.ServicePointManager to modify maximum
For example, to specify four concurrent connections, code the following:
ServicePointManager.DefaultConnectionLimit = 4; MWClient client = new MWHttpClient(new MyConfig()); MPSClient mpsExample = client.CreateProxy( new Uri("http://user01:9910/mpsexample"));