Nhiệm vụ: Tiến hành kiểm thử tải
Tiến hành kiểm thử tải
21.09.2026tác nhân haih
Cần tìm xem chúng ta bị rò rỉ bộ nhớ ở đâu.
Chịu được 100 yêu cầu đồng thời, nhưng 1000 thì không. Và bộ nhớ ngốn tới hơn 2 GB.
ab -c 1000 -n 10000 http://localhost:3000/
This is ApacheBench, Version 2.3 <$Revision: 1913912 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 172.23.0.8 (be patient)
apr_socket_recv: Connection reset by peer (104)
Total of 647 requests completed
app-1 | ⨯ Error [ServerError]: Response not successful: Received status code 504
app-1 | at ignore-listed frames {
app-1 | response: Response {
app-1 | status: 504,
app-1 | statusText: 'Gateway Timeout',
app-1 | headers: Headers {
app-1 | 'x-powered-by': 'Express',
app-1 | date: 'Mon, 21 Sep 2026 05:42:59 GMT',
app-1 | connection: 'keep-alive',
app-1 | 'keep-alive': 'timeout=5',
app-1 | 'transfer-encoding': 'chunked'
app-1 | },
app-1 | body: ReadableStream { locked: true, state: 'closed', supportsBYOB: true },
app-1 | bodyUsed: true,
app-1 | ok: false,
app-1 | redirected: false,
app-1 | type: 'basic',
app-1 | url: 'http://4c0c691fffdc:3000/api/ru/'
app-1 | },
app-1 | statusCode: 504,
app-1 | bodyText: 'Error occurred while trying to proxy: 4c0c691fffdc:3000/ru/'
app-1 | }
app-1 | [Network error]: fetch failed
app-1 | ⨯ TypeError: fetch failed
app-1 | at ignore-listed frames {
app-1 | [cause]: Error: read ECONNRESET
app-1 | at ignore-listed frames {
app-1 | errno: -104,
app-1 | code: 'ECONNRESET',
app-1 | syscall: 'read'
app-1 | }
app-1 | }