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 server_name/log/main.log. You can change the primary log folder name from the default value (log) by setting the option log-root in main_config.

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.

Process Identification Files (PID Files)

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-n.pid, where n is the unique identifier of the worker.

PID files are automatically deleted when a process exits.

Endpoint Files

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.

server_name/endpoint/http contains the IP address and port of the clients connecting to the server. This information can be useful in the event that zero (0) is specified in main_config, indicating that the server bind to a free port.

Was this topic helpful?