Will start 0 users? Do I config error?
intfish123 opened this issue · 1 comments
intfish123 commented
I run tsung start
Starting Tsung
Log directory is: /root/.tsung/log/20230505-1953
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
The tsung_controller log
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_config_server:(4:<0.71.0>) SYSINFO:Current path: /usr/lib/tsung/tsung-1.8.0/ebin/tsung.beam
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_mon:(5:<0.72.0>) Activate clients with text backend
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_mon:(5:<0.72.0>) Starting tsung clients on hosts: [localhost]
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_config_server:(5:<0.71.0>) Start a launcher on the controller beam localhost
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_config_server:(5:<0.71.0>) Local file servers: None defined
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_launcher_static:(5:<0.124.0>) Launch msg receive ("localhost")
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_launcher:(5:<0.125.0>) Launch msg receive ("localhost")
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_config_server:(5:<0.71.0>) New arrival phase 1 for client "localhost" (last ? true): will start 0 users
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_launcher:(5:<0.125.0>) Expected duration of first phase: 60.0 sec (0 users)
=INFO REPORT==== 5-May-2023::19:53:47 ===
alarm_handler: {set,{system_memory_high_watermark,[]}}
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_launcher:(5:<0.125.0>) This was the last phase, wait for connected users to finish their session
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_launcher_mgr:(5:<0.119.0>) No more active users tsung_controller@ck132 "246982"
=INFO REPORT==== 5-May-2023::19:53:47 ===
ts_mon:(5:<0.72.0>) stopping monitor (normal)
config.xml
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<!-- Client side setup -->
<clients>
<client host="localhost" use_controller_vm="true" maxusers="20000"/>
</clients>
<!-- Server side setup -->
<servers>
<server host="test-gateway.intfish.cn" port="80" type="tcp"></server>
</servers>
<!-- to start os monitoring (cpu, network, memory). Use an erlang
agent on the remote machine or SNMP. erlang is the default -->
<load>
<!-- several arrival phases can be set: for each phase, you can set
the mean inter-arrival time between new clients and the phase
duration -->
<arrivalphase phase="1" duration="1" unit="minute">
<users interarrival="5000" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_http" name="user_agent">
<user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21</user_agent>
<user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
</option>
</options>
<!-- start a session for a http user. the probability is the
frequency of this type os session. The sum of all session's
probabilities must be 100 -->
<sessions>
<session name="s1" probability="100" type="ts_http">
<!-- full url with server name, this overrides the "server" config value -->
<request>
<http url="/feature/v4/getConfig" method="POST" version="1.1" contents_from_file="/root/wxl/feature_req.json">
<http_header name="Content-Type" value="application/json"/>
</http>
</request>
</session>
</sessions>
</tsung>
intfish123 commented
Is there something wrong with my configuration?