gpt4 book ai didi

linux - 在 Amazon EC2 上安装的 Openfire 中无法连接超过 4k 个用户

转载 作者:太空狗 更新时间:2023-10-29 11:13:43 26 4
gpt4 key购买 nike

我正在我的 openfire 服务器上运行压力测试,但我无法连接超过 4k 的用户。当我的计算机连接 4k 用户时,为了确定问题出在 EC2 中,我在另一台计算机上以不同的用户偏移量运行相同的测试,但仍然没有改善。

这是我的 ulimit -a

ubuntu@amazon.ip:~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31534
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31534
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

这是我的/etc/security/limits.conf

的结尾
# End of file

* soft nofile 65535
* hard nofile 65535

你有什么建议?

最佳答案

这就是我所做的,并且有效。我必须在两台机器、客户端和 Openfire 机器上都这样做。

sudo su
ulimit -i 999999
ulimit -n 999999
ulimit -n 999999
ulimit -p 999999
ulimit -s 999999
ulimit -u 999999
ulimit -l 999999

关于linux - 在 Amazon EC2 上安装的 Openfire 中无法连接超过 4k 个用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28031466/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com