/max

Specify the maximum number of instances of a shared Uniface Server that the Uniface Router can start.

/max=MaxServers

Description

Use the /max switch in the [SERVERS] section of the Uniface Router assignment file urouter.asn to specify the maximum number of shared server instances the Router is allowed to start for each server name (UST) per user. The /max switch has meaning only for shared servers.

The Router counts the number of servers by comparing the complete specification, meaning the UST, the OS account, the server role, and the logon specification. If omitted, the default value is -1, meaning an unlimited number. If you specify /max=0, the server will never be started and an error will be sent to the client. This can be used to disable certain servers for maintenance.

For example:

[SERVERS]
DEFAULT = userver.exe /maxidle=2h /dir=..\home\guest
SALES = userver.exe /max=10 /asn=..\usr\local\sales\asv.asn /dir=..\home\kees
HR = userver.exe /max=50 /maxreq=100 /asn=..\usr\local\hr\asv.asn
PAYROLL = userver.exe /ex /gates=3800-3999 /asn=..\usr\secure\payrollasv.asn

Related Topics