Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5733

"Parallel" multiple instance execution is not parallel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 1.7.0.Final, 1.10.0.Final
    • Core Engine
    • None
    • False
    • False
    • undefined
    • Hide

      1. Clone git repository with reproducer: https://github.com/jgrabowski/threads-problem-reproducer.git
      2. Launch project with mvn clean compile quarkus:dev
      3. Launch process via swagger-ui or with curl

      curl -X 'POST' \
        'http://localhost:10000/SlowProcess' \
        -H 'accept: */*' \
        -H 'Content-Type: application/json' \
        -d '{
        "count": 3
      }'
      

      4. Output shows that following multiple instances are launched after number of seconds spent in previous instance, and not in parallel.

      Show
      1. Clone git repository with reproducer: https://github.com/jgrabowski/threads-problem-reproducer.git 2. Launch project with mvn clean compile quarkus:dev 3. Launch process via swagger-ui or with curl curl -X 'POST' \ 'http://localhost:10000/SlowProcess' \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ -d '{ "count" : 3 }' 4. Output shows that following multiple instances are launched after number of seconds spent in previous instance, and not in parallel.
    • 2021 Week 34-36 (from Aug 23), 2021 Week 37-39 (from Sep 13), 2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15)

      When multiple instance subprocess is invoked in Parallel mode it doesn't really run in parallel. It's sequential until first "waiting" activity in subprocess (like UserTask or Timer). It can dramatically reduce performance of a process.

              tdolphin-1 Tiago Dolphine (Inactive)
              jakubgrabowski Jakub Grabowski (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: