【问题标题】:Why does Ubuntu terminal shut down while running load tests?为什么 Ubuntu 终端在运行负载测试时会关闭?
【发布时间】:2013-01-11 10:18:27
【问题描述】:

在我的笔记本电脑上使用 cometd 对 2000 个并发用户进行负载测试时遇到一个特殊问题。遵循http://cometd.org/documentation/2.x/howtos/loadtesting 中的所有步骤。 这些测试对于大约 1000 个并发客户端运行良好。

但是当我将负载增加到大约 2000 个 CCU 时,终端就会关闭。

知道这里发生了什么吗?

顺便说一句,我已经按照网站的所有操作系统级别设置。即

# ulimit -n 65536
# ifconfig eth0 txqueuelen 8192 # replace eth0 with the ethernet interface you are using
# /sbin/sysctl -w net.core.somaxconn=4096
# /sbin/sysctl -w net.core.netdev_max_backlog=16384
# /sbin/sysctl -w net.core.rmem_max=16777216
# /sbin/sysctl -w net.core.wmem_max=16777216
# /sbin/sysctl -w net.ipv4.tcp_max_syn_backlog=8192
# /sbin/sysctl -w net.ipv4.tcp_syncookies=1

此外,我注意到即使在为其他平台运行负载测试时也会发生这种情况。我知道这必须与操作系统有关,但我无法弄清楚它可能是什么。

【问题讨论】:

    标签: linux ubuntu load


    【解决方案1】:

    ulimit 命令是否已正确执行?我在Ubuntu forum archiveUbuntu apache problem 中读到了一些关于它的内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多