Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1563

Need configuration for queue size w/ ParallelExecutor; as is, limited to pool core size threads, rather than pool max size

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: documentation, tapestry-ioc
    • Labels:
      None

      Description

      ParallelExecutor service is bound to the number of executor threads specified by THREAD_POOL_CORE_SIZE rather than THREAD_POOL_MAX_SIZE, which means by default only three parallel tasks are executed at once rather than the maximum of 20. This is unexpected behaviour for someone not familiar with the ThreadPoolExecutor design, which is not intuitive. The documentation of ParallelExecutor is very misleading and should be expanded to explain this correctly.

      This blog post I found explains it clearly:
      http://www.bigsoft.co.uk/blog/index.php/2009/11/27/rules-of-a-threadpoolexecutor-pool-size

        Activity

        Hide
        hudson Hudson added a comment -

        Integrated in tapestry-trunk-freestyle #389 (See https://builds.apache.org/job/tapestry-trunk-freestyle/389/)
        TAP5-1563: Need configuration for queue size w/ ParallelExecutor; as is, limited to pool core size threads, rather than pool max size

        hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1140276
        Files :

        • /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/IOCSymbols.java
        • /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
        Show
        hudson Hudson added a comment - Integrated in tapestry-trunk-freestyle #389 (See https://builds.apache.org/job/tapestry-trunk-freestyle/389/ ) TAP5-1563 : Need configuration for queue size w/ ParallelExecutor; as is, limited to pool core size threads, rather than pool max size hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1140276 Files : /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/IOCSymbols.java /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java

          People

          • Assignee:
            hlship Howard M. Lewis Ship
            Reporter:
            andyb Andy Blower
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development