我的应用程序基于react starter kit(node js app),我构建它并将其作为docker image上传。用围攻和apache-jmeter
做了一些压力测试,当并发用户超过70时我得到错误成功200
[error] socket:无法连接sock.c:230:没有这样的文件或目录 [error] socket:无法连接sock.c:230:协议不支持的地址族 [error] socket:无法连接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
有任何建议如何解决此问题或获取错误来源?
答案 0 :(得分:0)
您的测试代码中是否有任何思考时间?
在清理旧会话(服务器设置)之前等待多长时间?
您似乎正在运行会话资源。当您的旧会话超时时,您会在短暂的时间间隔内有机会连接并处理您的请求,然后您很快就会耗尽资源。