0

您好,我的应用程序基于 React 入门套件(node js 应用程序),我构建它并将其作为 docker 映像上传。并用 siege 和 with 做了一些压力测试apache-jmeter,当并发用户超过 70 时,我得到错误成功 200

[错误]套接字:无法连接sock.c:230:没有这样的文件或目录[错误]套接字:无法连接sock.c:230:协议不支持地址族[错误]套接字:无法连接sock.c :230: 协议不支持地址族 HTTP/1.0 503 0.39 秒:108 字节 ==> GET / HTTP/1.1 200 2.43 秒:37457 字节 ==> GET /

网站从 503 上下移动到 200 又一样。当错误 503 我无法访问网站并且它给我 503 服务不可用时。

当并发用户少于 65 时,它可以正常工作且没有错误,我可以访问网站。

我也尝试在本地测试站点,但我只收到此类错误而没有 503:-

[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: Address family not supported by protocol
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: Address family not supported by protocol
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: No such file or directory
HTTP/1.1 200   7.55 secs:   37895 bytes ==> GET  /
HTTP/1.1 200   7.57 secs:   37896 bytes ==> GET  /
HTTP/1.1 200   7.70 secs:   37898 bytes ==> GET  /
[error] socket: unable to connect sock.c:230: No such file or directory
[error] socket: unable to connect sock.c:230: No such file or directory

任何建议如何解决此问题或获取错误来源?

4

1 回答 1

0

您的测试代码中有思考时间吗?

在清理旧会话(服务器设置)之前等待多长时间?

您似乎正在运行会话资源。当您的旧会话超时时,您将在短时间内有机会连接并处理您的请求,然后您很快就会再次耗尽资源。

于 2017-07-26T15:34:09.470 回答