I am testing the server with spring-boot. However, I got some problems during doing test.
my test is How many memories server use with increasing the web socket sessions(the number of client).
1,000 clients(lesser than 9000 sessions) has no issues with doing the test. but, When I tried to test 10k connections, server made connections almost until 10,000.(sometimes creating sessions until 9990, sometimes 9988, 9996 like this, not the specific limit the number of socket) after that, it just stopped creating sessions, no errors just not responding.
If some clients get timeout and release the connection, other clients which were waiting to connect are able to get connections.
'environment' tomcat : 8.0.36 spring-boot : 1.3.3 java : 1.8
for solutions, I tried
increasing heap size.
I set server.tomcat.max-thread = 20000 in application.porperties.
I am really curious about this issue. If you guys knows this problem and have ideas, let me know the reason. Thanks.
There is a properties for spring boot, tomcat max-connection, which needs to be set in application.properties file
server.tomcat.max-connections= # Maximum number of connections that the server will accept and process at any given time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With