I am trying to deeply configure Jetty used in Ninja because I feel like I have a problem holding many connexions simultaneously. I think the problem is coming from the limited number of HTTP connexions accept or thread pools in Jetty. I actually manage to hold around 25 connexions in parallel then the next requests are in the queue.
The main idea is to allow more parallel connexion in Jetty.
I read this in the Ninja docs
ninja.jetty.configuration allows you to supply a comma-delimited list of jetty.xml configuration files to configure the server. Anything Jetty can do is now available. Please note that if this property is supplied then the host/port property is skipped and you’ll need to configure that in the jetty.xml configuration file. (eg -Dninja.jetty.configuration=jetty.xml,jetty-ssl.xml) Please refer to Jetty distribution for example config files. For each jetty configuration file the local filesystem is searched first, followed by the classpath, and if multiple files are included then each one is applied in order.
So i tried this using the Jetty 9.3 configuration XML files.
Hello,
I am trying to deeply configure Jetty used in Ninja because I feel like I have a problem holding many connexions simultaneously. I think the problem is coming from the limited number of HTTP connexions accept or thread pools in Jetty. I actually manage to hold around 25 connexions in parallel then the next requests are in the queue.
The main idea is to allow more parallel connexion in Jetty.
I read this in the Ninja docs
So i tried this using the Jetty 9.3 configuration XML files.
I put those xml configurations files in my ClassPath
jetty.xml
And the jetty-http.xml file
And on boot Ninja takes those files into consideration but the application crash on start
I found the configuration files template from the official Jetty website : https://www.eclipse.org/jetty/documentation/jetty-9/index.html
Now I am literally blocked and don't really know what to do.
Is there any way to configure Jetty in the java way without having to rewrite the configuration file completely ?
Any help is appreciated.
Thanks !