mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.76k stars 1.65k forks source link

What is the maximum number of connections for a single application in socket.io? When the current test limit reaches 2W, CPU 100%。请问socket.io 单个应用最大连接数是多少? #538

Open lishixnew opened 6 years ago

lishixnew commented 6 years ago

Computer config: CPU cores 8, Memory 16G JVM config: -Xmn512m -Xss256k -Xms2048m -Xmx2048m -XX:SurvivorRatio=8 -XX:MaxPermSize=128m

Perform pressure test on a single machine. When the current test limit reaches 2W, CPU 100% When deploying multiple socket.io servers on a single machine, each application can be tested up to 2W Why?

请问socket.io 单个应用最大连接数是多少?当前测试上限达到2W时,CPU100% computer config: CPU cores 8,Memory 16G JVM config: -Xmn512m -Xss256k -Xms2048m -Xmx2048m -XX:SurvivorRatio=8 -XX:MaxPermSize=128m

单台机器上进行压测,当前测试上限达到2W时,CPU100% 单台机器上部署多个socket.io服务端时,每个应用测试上限都可达到2W 为什么呢?

hangsucho commented 6 years ago

What is mean '2W'?

lishixnew commented 6 years ago

@hangsucho Performance test, when the number of online connections reaches 2W CPU will reach 100%, how to solve?

Romanroad6 commented 6 years ago

@hangsucho He means 20000.

sosojustdo commented 6 years ago

@lishixnew ,do you have use jstack or use Java Flame Graphs tools dump thred info analysis?

hangsucho commented 6 years ago

Ramp up time? 20K websocket. (concentrated at once? ping-pong packet)

and check JVM memory usage. jstat -gcutil PID