Specifications
Limiting Connections to AFP Service
If your server provides a variety of services, you can prevent a ood of users from
aecting the performance of those services by limiting the number of clients and
guests who can connect at the same time.
To set the maximum number of connections:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select AFP.
4 Click Settings, then click Access and look under “Maximum Connections.”
By default the maximum client and guest connections is set to Unlimited.
5 Click the button next to the number eld following “Client Connections (Including
Guests)” and enter the maximum number of connections you want to permit.
The guest connections limit is based on the client connections limit, and guest
connections count as part of the total connection limit. For example, if you specify
maximums of 400 client connections and 50 guest connections, and 50 guests are
connected, that leaves 350 connections for registered users.
The maximum number of simultaneous users is limited by the type of license you
have. For example, if you have a 10-user license for your server, a maximum of 10 users
can connect at one time.
6 Click the button next to the number elds and adjacent to “Guest connections” and
enter the maximum number of guests you want to permit.
Guest Connections is grayed out and cannot be edited until you select the “Enable
Guest access” checkbox.
7 Click Save.
From the command line:
To set the maximum number of connections: m
$ sudo serveradmin settings afp:maxConnections = value
For more information about command-line parameters for AFP, see “AFP
Parameters” on page 143. For information about serveradmin, see its man page.
For the basics of command-line tool usage, see Introduction to Command-Line
Administration.
82 Chapter 4 Working with AFP Service