4

有人对如何开始使用 node.js “net” 性能测试有任何建议吗?

我想看看我的应用程序将如何扩展并想测试 10,000 多个并发连接!

编辑:我想知道,所以我可以查看我的 Ubuntu 服务器配置是否正确等。

4

3 回答 3

1

10,000 concurrent connections. Hmmm. I would think that such a load would have to be tied to a user population for your app somewhere in the 500,000-2,000,000 range with a 2% to .5% level of concurrency respectively. If this was an internal facing corporate app then your user population expectations would be somewhere in the 83,333(12%) - 125,000 (8%). These concurrency models come from 15 years of observations in corporate and internet facing applications for levels of concurrency vs the defined user population for a given application facing model (internal corporate vs public internet).

The reason why I bring up the above is that you may be over stressing your component for its defined use and as a result you could have some engineering ghosts that you chase down to fix. This can impact your budget and availability to hit other issues that may show up in production use.

Just food for thought,

James Pulley

于 2011-05-18T13:23:04.043 回答
1

专业的性能测试工具与您的底层技术(node.js / .NET)无关,并且只查看输出(HTTP 请求和响应),因此任何工具都可以做到。

有惠普的 LoadRunner 和许多其他的。我使用了WebLOAD,它更具成本效益,并且更易于使用。

于 2011-05-02T18:50:50.727 回答
0

视频中可以看出,内存使用量并没有减少,因为它没有产生新的进程,这正是它获得大量追随者的原因。这就是事件驱动/非阻塞可以做的事情

于 2011-05-01T03:28:41.653 回答