【发布时间】:2011-06-03 16:34:29
【问题描述】:
我正在测试 NodeJ,尤其是并发性。我正在为此使用Tsung。 不幸的是,Tsung 似乎无法产生足够多的用户。我只获得了大约 30K 的同时连接,尽管 ~2GB RAM 仍未使用。 (Check the charts)
XML-Config 文件如下:
<tsung loglevel="notice" version="1.0">
<!-- Client side setup -->
−
<clients>
<client host="localhost" use_controller_vm="false"/>
<client host="localhost" use_controller_vm="false"/>
</clients>
<!-- Server side setup -->
−
<servers>
<server host="localhost" port="8000" type="tcp"/>
</servers>
−
<!--
to start os monitoring (cpu, network, memory). Use an erlang
agent on the remote machine or SNMP. erlang is the default
-->
−
<monitoring>
<monitor host="localhost" type="erlang"/>
</monitoring>
−
<load>
−
<arrivalphase phase="1" duration="50" unit="minute">
<users interarrival="0.000000001" unit="second"/>
</arrivalphase>
</load>
−
<sessions>
−
<session name="nodeJS" probability="100" type="ts_http">
−
<for from="0" to="40" incr="1" var="counter">
−
<request>
<http url="http://localhost:8000/" version="1.1" method="GET"/>
</request>
<thinktime random="false" value="300"/>
</for>
</session>
</sessions>
</tsung>
那么如何增加用户,让内存全部用完???
【问题讨论】: