Hmm, I'd suggest implementing TestListener interface, then reseting TimerState 
in testStarted() method...

В сообщении от 26 марта 2011 20:20:39 автор credible58 написал:
> I am getting erratic behaviour with the Synchronizing Timer after manually
> stopping a test with Ctrl-.
> 
> It looks very much like the problem reported by Bugzilla report 37705 -
> https://issues.apache.org/bugzilla/show_bug.cgi?id=37705
> 
> I have added a line of code to the delay() method of SyncTimer.java as
> follows:
> 
>     public long delay() {
>          synchronized (sync) {
>              timerCounter[0]++;
>              final int groupSz = getGroupSize();
>              final int count = timerCounter[0];
>              if (
>                  (groupSz == 0 && count >= // count of threads in the
> thread group
> 
> JMeterContextService.getContext().getThreadGroup().getNumThreads())
> 
>                  (groupSz > 0 && count >= groupSz)
>                  ) {
>                  sync.notifyAll();
>                  timerCounter[0]=0; // reset counter once we have reached
> the limit
>              } else {
>                  try {
>                      sync.wait();
>                  } catch (InterruptedException e) {
>                      log.warn(e.getLocalizedMessage());
> 
>                      timerCounter[0]=0; // *** Added this line
> 
>                  }
>              }
>          }
>          return 0;
>      }
> 
> This seems to fix the problem.
> 
> * Has the earlier fix been lost?
> * Am I doing something wrong?
> 
> Thanks and regards...Paul
> 
> Environment is:
> 
> Windows 7 Professional - 32 bit
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> JMeter 2.4 r961953
> 
> 
> -----
> Paul Offord
> Advance7
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Synchronizing-Timer-Erratic-results-aft
> er-Stop-tp4265689p4265689.html Sent from the JMeter - User mailing list
> archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

Reply via email to