You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/07/08 15:59:27 UTC

[Bug 53418] Add an option to make the thread group only creates threads on demand

https://issues.apache.org/bugzilla/show_bug.cgi?id=53418

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
I investigated this one, my draft implementation idea is the following:
- Make AbstractThreadGroup control the life of the JMeterThread threads
- So AbstractThreadGroup would have:
1) a start method that would trigger a Thread. This thread will launch
JMeterThreads and control their life.
2) A stop method to stop/interrupt them
3) isCreatingThreadsOnDemand which would return true for new behaviour

If isCreatingThreadsOnDemand returns false, StandardJMeterEngine would create
Threads as today.
If true, implementation of ThreadGroup would create threads as part of its
internal behaviour.

This way I think we don't break existing plugins that extend
AbstractThreadGroup.
But the bad point about it is that thread creation algorithm will be in Thread
Group unless we move it in AbstractThreadGroup  and call it or not, which might
be better as we need to keep control on this part to ensure right shutdown,
stop....

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