[Tsung] Tsung - Report analysis

Bouffard, Sebastien sebastien.bouffard at canoe.ca
Fri Jan 15 21:51:08 CET 2010


I'll try the patch as soon as I can find a little time. I'll reply to the thread to let you know how it turns out.

At least now I can explain the numbers to my clients and that partially solves the problem I had.

Sébastien Bouffard

-----Message d'origine-----
De : Nicolas Niclausse [mailto:nicolas at niclux.org] 
Envoyé : 15 janvier 2010 03:58
À : Bouffard, Sebastien
Cc : tsung-users at lists.process-one.net
Objet : Re: [Tsung] Tsung - Report analysis

Bouffard, Sebastien ecrivait le 14/01/2010 23:47:
> Hello,
> Think I found what can explain the difference in the mean times I explained in my previous email.
> I actually had a certain number of timeouts that occurred during the test (374 to be more precise).
> Is it possible that timed out requests will account in the session mean duration time while it won't for transactions (even if the transaction spans the entire session)?

Yes, that's what happens: a timeout occurs, the finish_session fun is
called and the session time is computed, but started transactions are ignored.

Can you try this patch ?

 src/tsung/ts_client.erl |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/tsung/ts_client.erl b/src/tsung/ts_client.erl
index d60ee41..630debe 100644
--- a/src/tsung/ts_client.erl
+++ b/src/tsung/ts_client.erl
@@ -620,6 +620,16 @@ finish_session(State) ->
     Now = now(),
     Elapsed = ts_utils:elapsed(State#state_rcv.starttime, Now),
+    case State#state_rcv.transactions of
+        [] -> % no pending transactions, do nothing
+            ok;
+        TrList -> % pending transactions (an error has probably occured),
compute transaction time
+            ?LOGF("Pending transactions: ~p, compute transaction
+            lists:foreach(fun({Tname,StartTime}) ->
+                          end,
+                          TrList)
+    end,
     ts_mon:endclient({State#state_rcv.id, Now, Elapsed}).



More information about the Tsung-users mailing list