concurrency-ee-spec
  1. concurrency-ee-spec
  2. CONCURRENCY_EE_SPEC-28

Maximum no. of threads created are equal to core-pool size irrespective of maximum pool size

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu-12.04,

      Description

      When tasks are submitted to this Managed-Executor-Service the maximum no. of threads generated are equal to corepoolsize and does not scale no. of threads to maxpoolsize.

      eg: If each task takes 16 seconds then, on submitting both task Task1 and Task2 ,
      if Task1 starts at time t0, then Task2 will start at (t0+16sec).

      Build Used: glassfish/4.0/promoted/b74
      Resource: ./asadmin create-managed-executor-service --corepoolsize=1 --maximumpoolsize=2 concurrent/mes-1-2

      INFO: concurrent/mes-1-2-managedThreadFactory-Thread-1 ::LoggerReport Task-0 Started!
      INFO: concurrent/mes-1-2-managedThreadFactory-Thread-1 ::LoggerReport Task-0 Ended!
      INFO: concurrent/mes-1-2-managedThreadFactory-Thread-1 ::LoggerReport Task-1 Started!
      INFO: concurrent/mes-1-2-managedThreadFactory-Thread-1 ::LoggerReport Task-1 Ended!

      Start time: 1360576065' , 'Task:1' , 'concurrent/mes-1-2-managedThreadFactory-Thread-1
      Start time: 1360576049' , 'Task:0' , 'concurrent/mes-1-2-managedThreadFactory-Thread-1

        Activity

        Hide
        anthony.lai added a comment -

        Please file issue under glassfish concurrency component. Thanks.

        Show
        anthony.lai added a comment - Please file issue under glassfish concurrency component. Thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            shobhit.singh
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: