NodeJ、特に同時実行性をテストしています。これにはTsungを使用しています。残念ながら、Tsung は十分な数のユーザーを生み出すことができていないようです。~2GB の RAM がまだ使用されていませんが、同時接続数は約 30K しかありません。(チャートを確認してください)
XML 構成ファイルは次のとおりです。
<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>
では、すべての RAM が使用されるように、ユーザーを増やすにはどうすればよいでしょうか???