Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

疑似nodejs内存泄露的一种情况,websocket连接断开后,仍然占有一定内存。

$
0
0

利用github上ws 包 https://github.com/websockets/ws实现的服务端,在并发测试时候,写了一些脚本做测试。 3万client端连接尚服务端,然后断开。在gc 回收稳定之后,内存较初始要高。且连接数越多,内存占用会越多。 github上提出的问题。 https://github.com/websockets/ws/issues/804

不知道这种情况是否正常?为什么会有这种内存占用的情况呢?


Viewing all articles
Browse latest Browse all 14821

Trending Articles