Viewing and managing network ports on Linux and Solaris

In ArcGIS Manager, you can see the the display of the network ports that are used by ArcGIS Server. In some cases, you can change these port settings.

To view the ports that are being used by ArcGIS Server, click GIS Server and click the Ports link.

Display port

The default display port can be modified. The DISPLAY process is running on port 600 by default. The valid port range for DISPLAY is 600 to 619. ArcGIS Server takes the first available port to start DISPLAY within this range. For example, ArcGIS Server tries 600 first. If 600 is occupied, it will go to 601, and so on, until it reaches 619. If all of these ports are occupied, ArcGIS Server will fail to start. You can edit the range in the <ArcGIS Server Installation Directory>/servercore/.Server/init_Xvfb.sh file:

  1. Stop ArcGIS Server if necessary by running the script at <ArcGIS Server Installation directory>/scripts/stopserver.
  2. Edit the following two variables in the init_Xvfb.sh file:

    ESRIXVFBPMIN (default value is 600)

    ESRIXVFBPMAX (default value is 619)

  3. Start ArcGIS Server by running the script at <ArcGIS Server Installation directory>/scripts/startserver.

RPC port

Some ArcGIS Server processes run on specific ports, such as the RPCSS process on port 135, while the underlying DCOM layer uses a random range of ports by default for DCOM communication. These ports are picked randomly at startup of ArcGIS Server and the Enterprise Core Services. They are not displayed in the port list in ArcGIS Server Manager.

In a configuration that uses firewalls, it may be desirable to restrict this range to a predefined set of ports. The instructions provided below describe the steps to enforce this restriction. The predefined set of ports is displayed in Manager. In the screen shot above, 1500–1700 and 1800 are the predefined ports on which RPC services are running.

  1. While ArcGIS Server is running, open a terminal as the owner of the ArcGIS Server installation.
  2. Set the environment variable DISPLAY to an appropriate value:
    % source <ArcGIS Server Installation directory>/servercore/.Server/init_server.sh

    or

    % source <ArcGIS Server Installation directory>/servercore/.Server/init_server.csh
  3. Run the command dcomcnfg to open the DCOM configuration utility:

    # dcomcnfg

    It may take a few moments to launch the DCOM configuration utility.

  4. Click the Properties for COM Network Services tab.
  5. Click Add and specify a port or range of ports that DCOM should use. Click OK.

    An example of a range of ports or a port is: 1500–1700 or 1800.

    メモメモ:
    • Using commas or any other delimiter is not currently supported.

    • The port values listed in the example above are random and should not be treated as a recommendation.

    • Use a port value or range of port values above 1024 and below 65535. If one or more ports specified in dcomcnfg is already in use, ArcGIS Server uses the next available port in that range.

    • If all the ports in the configured range are used, the remote client/server method calls on that process fail.

  6. Repeat step 5 to add additional ports or a range of ports.

  7. Click Apply and OK to accept the changes.
  8. Open a new terminal as the owner of the ArcGIS Server installation. Restart ArcGIS Server:
% <ArcGIS Server Installation directory>/scripts/stopserver 
% <ArcGIS Server Installation directory>/scripts/startserver

If using a distributed installation of ArcGIS Server, do the steps for each machine containing an ArcGIS Server SOM and/or SOC component.

2422—Monitor

2422 is the default port that runs the Monitor Framework that supports the Server Diagnostic tool. Check Performing diagnostics on Solaris and Linux for information on how to configure this port.


3/6/2012