Comments (10)
Hi,
We faced same problem when we use the raw request with udp to send syslog packet. We find that the udp transport require the buffer options like followings.
<options>
<option name="udp_snd_buffer" value="16384"></option>
<option name="udp_rcv_buffer" value="16384"></option>
</options>
I think that the options should be pre-set.
from tsung.
Tsung already support raw protocol (see ts_raw plugin). The documentation was missing though, fixed in 36a7182
Is it what you are looking for ?
from tsung.
How to get the specific string from the Tcp protocol reponse by regexp ? the reponse is " 408005 6188007051562582020", my script is "
<dyn_variable name="sessionID" re="6[0-9]{18}"/>
"
but the value of the variable sessionID is blank.
from tsung.
Ok,I've got the result from reponse correctly,the reason was the regexp in tsung should use "()",the correct script as following:re="(6[0-9]{18})"
from tsung.
ok, fine, I think we can close the issue.
from tsung.
Ok
huakaiwusheng_1986
From: Nicolas Niclausse
Date: 2015-09-07 16:27
To: processone/tsung
CC: alicehanhy
Subject: Re: [tsung] can support e raw tcp/udp protocol of rpc call? (#115)
ok, fine, I think we can close the issue.
—
Reply to this email directly or view it on GitHub.
from tsung.
Can it work with UDP now? I cannot make any UDP traffic, using same configuration as raw_tcp example but replaced server type from "tcp" to "udp".
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="debug" dumptraffic="true" version="1.0">
<clients>
<client host="localhost" weight="2" maxusers="10000" use_controller_vm="false"/>
</clients>
<servers>
<server host="127.0.0.1" port="9090" type="udp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="10" unit="minute">
<users arrivalrate="2" unit="second"></users>
</arrivalphase>
</load>
<sessions>
<session probability="100" name="raw" type="ts_raw">
<transaction name="open">
<request> <raw data="hellloooooo" ack="no_ack"></raw> </request>
</transaction>
</session>
</sessions>
</tsung>
From logs:
stats: {freemem,"tsung_controller@localhost"} 1 2075.96484375 0.0 2098.55859375 2075.96484375 2088.9544270833335 3
stats: session 18 1.8977186414930556 0.1852411166360447 6.77783203125 1.22900390625 2.0139789003314394 66
stats: users_count 18 84
stats: finish_users_count 18 84
stats: error_unknown 16 82
from tsung.
Hi,
Using the xml above, I got:
=INFO REPORT==== 24-May-2016::09:19:45 ===
ts_client:(7:<0.164.0>) connect to port 7000
=INFO REPORT==== 24-May-2016::09:19:45 ===
ts_client:(5:<0.164.0>) Stop in state think, reason= badarg
=ERROR REPORT==== 24-May-2016::09:19:45 ===
** State machine <0.164.0> terminating
** Last message in was {timeout,#Ref<0.0.2.523>,end_thinktime}
** When State == think
** Data == {state_rcv,none,
{{0,0,0,0},0},
undefined,0,10000,"localhost",7000,ts_udp,
{proto_opts,negotiate,negotiate,"/http-bind/",false,
false,"/chat","binary",10,3,600000,infinity,infinity,
32768,32768,undefined,undefined,[],true,true},
false,1,undefined,true,undefined,-576460734839818548,11,
11,false,undefined,0,[],<<>>,
{raw,undefined,undefined,undefined},
0,33,524288,524288,
[{tsung_userid,33}],
ts_raw,[],undefined,full}
** Reason for termination =
** badarg
from tsung.
I hit the same problem while tried to make a DNS stress loader and @mit0223 solution worked. Kudos!
My conclusion is UDP data sending is not possible if buffer size is not set exclusively which looks like a bug.
from tsung.
yes, it's a bug. Fixed, thanks.
from tsung.
Related Issues (20)
- Mean value is empty and count is 0 in the generated report
- The load is not generated from mulitple client instances as expected in distributed environment HOT 1
- Cannot do "contents_from_file" and '<request subst="true">' at the same time HOT 1
- datestr_test failed with erlang 21 HOT 1
- Error using tsung view after running load test
- Tsung 1.7.0 crashes on start HOT 3
- Getting config error while start a demo mqtt.xml.in script
- Are there any methods for getting only 400s or 500s error in tsung protocol dump file?
- Can I test TCP in tsung but using SSL? HOT 1
- Unable to view graphs on webui HOT 1
- Massive CPU usage after a certain point
- Tsung doen't respond with PONG
- Monitoring with snmp does not work
- Will start 0 users? Do I config error? HOT 1
- How can I test TCP and check recv package?
- How can i send all XMPP messages to a specific user? HOT 1
- Erlang OTP 26 ssl defaults HOT 1
- ssl hand shake fail
- tsung-recorder creates unusable data
- Missing opening curly bracket near @formats
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsung.