Adjusting the Number of Server Threads 

The ServerApp class handles the spawning and destruction of threads used in listening to incoming RFC calls and processing those calls.

The ServerApp.run() method starts with only one thread (in addition to itself) for listening to incoming calls.

ServerApp spawns more thread as necessary when more concurrent RFC calls are received.

ServerApp stops spawning new threads when one of the following conditions are met:

Initially, the maximum allowed number of threads is five. Before invoking ServerApp.run(), you can adjust the maximum allowed number of threads by calling ServerApp.increaseMaximumThreadCount(int). Note that the argument passed to this method is the number of threads to add to the current number (the delta), rather than the absolute number for the maximum allowed.