Use nodejs's ws module to simulate the client side to create up to 500 connections?

create a websocket in the loop and bind the corresponding event. When the upper limit is 500, each connection will be created successfully and the backend will be returned correctly. But when this number reaches 520 +, the excess cannot be created successfully. Why is that?

the reason for doing this is to write your own stress test tool.

Mar.06,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3de31-4478c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3de31-4478c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?