https://bz.apache.org/bugzilla/show_bug.cgi?id=58784

            Bug ID: 58784
           Summary: Use invokeLater in JMeterUtils#runSafe
           Product: JMeter
           Version: 2.13
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 33386
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33386&action=edit
Use invokeLater instead of invokeAndWait

The usage of invokeAndWait in runSafe will slow down the samplers in gui mode,
when listeners are used.

When running with 1000 threads in 500 loops using just a simple java sampler
(0ms wait) and a Summary Report the version with invokeAndWait will do about
30.000 req/s and the one with invokeLater around 100.000 req/s. (Tested on my
ubunutu notebook with local X).

When run over remote X the version with invokeAndWait can perform a lot worse,
due to heavy lock contention.

The proposed patch ignores the potentially thrown exceptions, as they are
probably ignored by the other usages of invokeLater in other parts of jmeter
code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to