Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9441

The NestedFunctionExecutionDistributedTest uses too many threads

    XMLWordPrintableJSON

    Details

      Description

      The NestedFunctionExecutionDistributedTest uses OperationExecutors MAX_FE_THREADS to configure both client function invocations and cache server max connections.

      It uses MAX_FE_THREADS * 2 for function executions which use Function Execution Processor threads:

      client.invoke(() -> executeFunction(new ParentFunction(), MAX_FE_THREADS * 2));
      

      And potentially MAX_FE_THREADS * 3 for client connections which use ServerConnection threads:

      cacheServer.setMaxConnections(Math.max(CacheServer.DEFAULT_MAX_CONNECTIONS, MAX_FE_THREADS * 3));
      

      MAX_FE_THREADS was changed recently to:

      Math.max(Runtime.getRuntime().availableProcessors() * 16, 16))
      

      It doesn't need to use this many threads to test the behavior it is testing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                demery Dale Emery
                Reporter:
                boglesby Barrett Oglesby
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: