Server Diagnostic Tools
Log Files
Each server writes a log file containing data from both the main server process, as well as
the workers, named
. You can
change the primary log folder name from the default value (server_name
/log/main.loglog
)
by setting the option log-root
in the
main_config
server configuration file.
The primary log folder contains the main.log
file,
as well as a symbolic link to this file with the auto-generated name
of main_
.date
_fileID
.log
The stdout
stream of the main server process
is captured as log/main.out
.
The stderr
stream of the main server process
is captured as log/main.err
.
For information on viewing logs for a server deployment in the cloud, see View Logs.
Process Identification Files (PID Files)
In an on-premises MATLAB®
Production Server™ installation, each process that the server runs generates a
Process Identification File (PID File) in the folder
identified as pid-root
in
main_config
.
The main server PID file is main.pid
; for
each MATLAB Runtime worker process, it is worker-
,
where n
.pidn
is the unique identifier of the
worker.
PID files are automatically deleted when a process exits.
Endpoint Files
In an on-premises MATLAB Production Server installation, endpoint files are generated to capture information about the server’s bound external interfaces. The files are created when you start a server instance and deleted when you stop it.
contains
the IP address and port of the clients connecting to the server. This information
can be useful in the event that zero is specified in server_name
/endpoint/httpmain_config
,
indicating that the server bind to a free port.