F
F
fysx2014-07-04 14:18:01
Java
fysx, 2014-07-04 14:18:01

How many connections can Jetty 9 embedded support?

The situation is as follows:
A server for a small game has been written, using Jetty 9 embedded as an http server. Runs in parallel on three VPSs (1024MHz, 1024Mb, 10Mbps each). ProtoBuf from Google is used to exchange messages with the client. When the session is initialized, a JSON object is parsed from the database (Cassandra cluster) - this is done only once for each. with an active game, approximately 1 request is sent every one to two seconds.
Actually the question is: how many simultaneous connections can this assembly approximately withstand?
PS: a java test was written that generates separate threads, each thread sends and receives game messages once a second. When loading at about 2000 users, timeout interrupts begin, while the load on the servers increases slightly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2014-07-04
@opium

A lot if correctly written,
run the profiler and see where you have a bottleneck if the server is not loaded.

I
iryndin, 2014-07-09
@iryndin

Must endure a lot. But it depends on the amount of data per request, frequency of requests, network quality, protocol (TCP or UDP) and other factors. No one here can tell you the exact answer. Need to test. Load your servers with requests that simulate the actual requests of your application and you'll find out the answer to your question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question