Giter Club home page Giter Club logo

Comments (4)

link1st avatar link1st commented on September 23, 2024

压测过程中会出现大量 TIME_WAIT

TIME_WAIT 其实是正常现象,再压测http接口都是都是短连接,每次建立连接的时候都会出现 TIME_WAIT,除非压测的时候建立长链接,只压测数据

保持连接KeepAlive

from go-stress-testing.

binbin0325 avatar binbin0325 commented on September 23, 2024

@link1st 谢谢。还有一个这样的问题。
connect: cannot assign requested address

image

from go-stress-testing.

binbin0325 avatar binbin0325 commented on September 23, 2024

@link1st
如下图,第一秒的时候并发数是4,是代表在第一秒中的时候 只有四个并发么。如果是这样的话,那QPS却是4W多。不知道这些数据怎么算出来的。

image

from go-stress-testing.

link1st avatar link1st commented on September 23, 2024

问题一:
connect: cannot assign requested address
无法分配请求地址,因为在TCP 连接的时候client需要占用一个端口,但是本地的端口是有限的,所以会出现无法分配端口的现象

解决:
设置更多的可用端口、修改地址快速回收

问题二:
QPS: 指的是一秒钟请求接口次数,这里平均耗时为 0.02 毫秒
QPS=1s*1000/0.02 等于50000,显示 0.02 毫秒因为小数舍去了,所以是40213.41

from go-stress-testing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.