To enable the statistics API protocol, include a protocol handler definition in the GATEWAY section of the configuration file.
The statsport parameter in the GATEWAY section of the configuration file is deprecated. If you specify the statsport parameter in addition to specifying a statistics API protocol handler definition, the statistics API protocol handler definition takes precedence. You can use the parameter override -statsport to override the port number for the statistics API listener port.
protocol@statsapi.handler=com.ibm.ctg.server.RestrictedTCPHandler
protocol@statsapi.parameters=connecttimeout=2000;port=2980;bind=;maxconn=5;
Entry in the ctg.ini file | Description |
---|---|
bind | Bind address |
connecttimeout | Connection timeout |
port | Port |
maxconn | Maximum number of connections |