这段时间node在干什么?
发布于 8 年前 作者 liumoujie 3219 次浏览 来自 问答

[15881:0x328b110] 179350 ms: Scavenge 509.5 (636.1) -> 502.2 (636.1) MB, 26.0 / 0 ms [allocation failure]. [15881:0x328b110] 179514 ms: Scavenge 513.9 (636.1) -> 506.3 (636.1) MB, 25.3 / 0 ms [allocation failure]. [15881:0x328b110] 182079 ms: Scavenge 520.1 (636.1) -> 511.8 (636.1) MB, 26.6 / 0 ms [allocation failure]. [15881:0x328b110] 183005 ms: Scavenge 525.2 (636.1) -> 517.6 (636.1) MB, 25.2 / 0 ms [allocation failure]. 中间间隔:199923-183005 = 16918ms [15881:0x328b110] 199923 ms: Scavenge 531.0 (636.1) -> 521.9 (636.1) MB, 27.8 / 0 ms [allocation failure]. [15881:0x328b110] 200193 ms: Scavenge 537.8 (636.1) -> 529.0 (636.1) MB, 28.8 / 0 ms [allocation failure]. [15881:0x328b110] 200439 ms: Scavenge 544.4 (636.1) -> 535.9 (636.1) MB, 26.3 / 0 ms [allocation failure]. 中间间隔: 257416 - 200439 = 56977ms [15881:0x328b110] 257416 ms: Scavenge 551.5 (636.1) -> 542.9 (640.1) MB, 29.4 / 0 ms (+ 1.3 ms in 4 steps since last GC) [allocation failure]. [15881:0x328b110] 257531 ms: Scavenge 548.4 (641.1) -> 545.3 (645.1) MB, 26.8 / 0 ms (+ 5.5 ms in 69 steps since last GC) [allocation failure]. [15881:0x328b110] 257601 ms: Scavenge 547.5 (645.1) -> 546.2 (646.1) MB, 18.8 / 0 ms (+ 2.8 ms in 27 steps since last GC) [allocation failure]. [15881:0x328b110] 257630 ms: Scavenge 546.9 (647.1) -> 546.5 (647.1) MB, 16.2 / 0 ms (+ 1.0 ms in 9 steps since last GC) [allocation fail]. 测试的场景是客户端10000个链接连到通过websocket连到服务器上。每次连500,连上了之后,再发500个连接。前面8000个连接没什么问题,过了8000就会遇到这个瓶颈。 中间有两次相当长的间隔,导致响应异常的慢,并且这段间隔中,用 top 命令都已经看不到 node 的执行情况,感觉就像这个进程消失了一样。

回到顶部