
Chapter 338
The Adaptor.xml file
The Adaptor.xml file defines settings for an adaptor. It determines the number of threads that can
be used by the adaptor, the communications ports that adaptor binds to, and the IP addresses or
domains from which the adaptor can accept connections.
Each adaptor must have its own directory inside the server’s conf directory. The name of the
directory is the name of the adaptor. Each adaptor directory must contain an Adaptor.xml file.
For example, the default adaptor included with the server at installation is named _defaultRoot_,
and its directory is found in the \Flash Communication Server MX\conf\ directory.
To change an adaptor’s settings, you edit the tags in the Adaptor.xml file.
The Adaptor.xml file contains the following tag structure, along with brief comments for each
tag:
<Adaptor>
<ResourceLimits>
<MaxThreads>100</MaxThreads>
</ResourceLimits>
<HostPortList>
<HostPort>:1935</HostPort>
</HostPortList>
<Allow></Allow>
<Deny></Deny>
<Order>Deny,Allow</Order>
</Adaptor>
The tags in the Adaptor.xml file serve the following purposes:
• <Adaptor> contains all the other adaptor configuration tags.
• <ResourceLimits> is a container for the <MaxThreads> tag.
• <MaxThreads> specifies the maximum number of threads to create on the server for processing
input/output requests. The default is 100. Increasing this number allows more threads to run
concurrently, but also increases the processor workload by requiring more thread-switching
operations. Generally you will not need to change this setting. If you do want to change it, test
you applications thoroughly to determine the best value.
• <HostPortList> is a container for one or more <HostPort> tags.
Commentaires sur ces manuels