[Tsung] "Data receive from socket in state think, stop"?? What is?

Pablo Polvorin ppolv at yahoo.com.ar
Thu May 29 21:04:02 CEST 2008


Hi,

> I create the graph and
> on the simultaneous users i saw that tsung isn't able to work with more of
> 100 clients!!! How is possible?

5 minutes session, interarrival of 2 seg -> you are launching
a total of ~150 total users during the whole session
(~150 and not necessarily 150, as the arrival rate uses an exponential
distribution).

Only at the very end of the arrival phase, when all clients have been launched
and supposing that no client finished it session, you would be reaching ~150
connected users. Actually, you aren't too far from that number. 

>Data receive from socket in state think, stop
that's pretty much self explanatory. The client is receiving data when 
it isn't supposed to receive anything. And that session is stopped. 
In your report, did you get "error_unknown_data"? how many of them?.

Don't know what could be causing this though, 

are you sure that your server isn't sending any data?. 

In your plugin, how do you parse the data received from the server? did your 
code remember that tcp is a streaming protocol? you can't assume that the reply

from the server will reach you entirely in one packet nor will be passed 
to you entirely in one invocation to your_plugin:parse callback. It's your
plugin responsibility to parse the receiving data, and properly recognize
message delimiters. 

This particular error may be caused by your plugin informing that the 
response is complete when it isn't.
 
regards,
pablo








> 
> Here there's a (very small, sorry) pic about it:
> http://picasaweb.google.com/mcanato/Test/photo#5205845365935042610
> as you can see, the connected users are always <=100.
> 
> I tried to change settings of tsung.xml but the problem isn't solved...
> 
> And i'm sure that the daemon can be work with more of 100 client
> simultaneous....
> 
> 
> So, i look out at the tsung_controller.log and i've found this (error?) line
> when the client counters arrive for the first time at 100.
> 
> 
> 
> =INFO REPORT==== 29-May-2008::15:23:51 ===
>            ts_client:(3:<0.235.0>) Data receive from socket in state think,
> stop
> 
> 
> 
> 
> 
> =INFO REPORT==== 29-May-2008::15:23:49 ===
>        ts_tester:(5:<0.232.0>) ts_tester:parse(<<"OK 01 e017bc8b\r\n">>,
> #state_rcv{acc=[], dyndata={dyndata,
> 
> [{ser,
> 
> "00000001"},
> 
> {passwd,
> 
> "12345678"},
> 
> {firm_m,
> 
> "00.00.00"},
> 
> {firm_p,
> 
> "00.00.00"},
> 
> {md5param,
> 
> "\\N"}],
> 
> {tester_dyndata,
> 
> undefined}}})
> ================ CUT ===========================
> 
> =INFO REPORT==== 29-May-2008::15:23:51 ===
>        ts_tester:(5:<0.232.0>) ts_tester:parse(<<"OK 01 86430167\r\n">>,
> #state_rcv{acc=[], dyndata={dyndata,
> 
> [{ser,
> 
> "0000002"},
> 
> {passwd,
> 
> "AAAASnor"},
> 
> {firm_m,
> 
> "01.00.00"},
> 
> {firm_p,
> 
> "01.00.00"},
> 
> {md5param,
> 
> "\\N"}],
> 
> {tester_dyndata,
> 
> "e017bc8b"}}})
> 
> =INFO REPORT==== 29-May-2008::15:23:51 ===
>            ts_client:(3:<0.232.0>) Data receive from socket in state think,
> stop
> 
> 
> 
> Where at each connection, the server send ONLY at the beginning of the
> comunications "OK 01"++security_code (and the  the security_code will be
> stored in tester_dyndata). From the log i can understand that tsung use an
> existing child to communicate with the server! why?!?! and at the end of the
> simulation, there will be a series of zombie-processes.....
> 
> what can I do?
> 
> thanks a lot,
> M.Canato
> > _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
> https://lists.process-one.net/mailman/listinfo/tsung-users
> 



      Los referentes más importantes en compra/ venta de autos se juntaron:
Demotores y Yahoo!
Ahora comprar o vender tu auto es más fácil. Vistá ar.autos.yahoo.com/


More information about the Tsung-users mailing list