宗。致命配置错误
tsung. Fatal config error
我遇到过这个问题(在 debian 8 上,使用 tsung 1.5.1。)。
XML 配置是:
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/opt/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="warning">
<clients>
<client host="localhost" maxusers="400"/>
</clients>
<servers>
<server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users arrivalrate="5" unit="second"/>
</arrivalphase>
</load>
<session name='rec20150703-1430' probability='100' type='ts_http'>
***here is the recorded through the proxy recorder***
</session>
当我开始时 "tsung start" 我收到一个错误:
2665- fatal: unexpected_end
Config Error, aborting ! {fatal,
{unexpected_end,
{file,"/root/.tsung/tsung.xml"},
{line,119}, ***my xml consists of the 118 lines***
{col,1}}}
有人遇到过类似的行为吗?
提前致谢。
您需要将会话包含在 <sessions/>
标签中,并在末尾关闭打开的 <tsung>
标签,如下所示:
<servers>
<server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users arrivalrate="5" unit="second"/>
</arrivalphase>
</load>
<sessions>
<session name='rec20150703-1430' probability='100' type='ts_http'>
***here is the recorded through the proxy recorder***
</session>
</sessions>
</tsung>
我遇到过这个问题(在 debian 8 上,使用 tsung 1.5.1。)。
XML 配置是:
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/opt/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="warning">
<clients>
<client host="localhost" maxusers="400"/>
</clients>
<servers>
<server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users arrivalrate="5" unit="second"/>
</arrivalphase>
</load>
<session name='rec20150703-1430' probability='100' type='ts_http'>
***here is the recorded through the proxy recorder***
</session>
当我开始时 "tsung start" 我收到一个错误:
2665- fatal: unexpected_end
Config Error, aborting ! {fatal,
{unexpected_end,
{file,"/root/.tsung/tsung.xml"},
{line,119}, ***my xml consists of the 118 lines***
{col,1}}}
有人遇到过类似的行为吗?
提前致谢。
您需要将会话包含在 <sessions/>
标签中,并在末尾关闭打开的 <tsung>
标签,如下所示:
<servers>
<server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users arrivalrate="5" unit="second"/>
</arrivalphase>
</load>
<sessions>
<session name='rec20150703-1430' probability='100' type='ts_http'>
***here is the recorded through the proxy recorder***
</session>
</sessions>
</tsung>