Server Threads

TIBCO Patterns servers are multithreaded. If your host machine has multiple processors, a TIBCO Patterns server process uses them in parallel. Even on a single-processor host, it can do database loads and dumps in parallel with queries.

The thread usage of TIBCO Patterns servers depends on the platform. To avoid resource contention, the number of request handler threads is limited to four by default. You can adjust this limit with the -t option on the command line. The optimal number of threads depends on the number of CPUs available, the hardware and memory configuration, the volume and configuration of data loaded into the server, the expected query rate, and the type of queries. In the recommended configuration of a single TIBCO Patterns server running on a dedicated machine, the number of threads might generally be equal to the number of virtual CPUs available on the machine. At least one thread is required.

Warning: Do not start a server with a single thread if it is used as a gateway for multitable searches.