previously I was using HTTP/1.1 connector, recently I changed to NIO2 to see the performance. I read that NIO2 is non blocking so trying to check how this works.
which connector protocol do you recommend and best configuration for the connector ? Which stable version of tomcat would you recommend ? Are there any ubuntu specific configs for tomcat ? We are using OkHttp client library to call rest api and stack trace shows failure at the api call. The api being called is running on the same tomcat instance (different context) usring url localhost. This does not happen when number of requests is less. On Wed, May 27, 2020 at 11:48 AM Mark Thomas <ma...@apache.org> wrote: > On 26/05/2020 23:28, Ayub Khan wrote: > > Hi, > > > > During high load I am seeing below error on tomcat logs > > > > java.util.concurrent.ExecutionException: java.net > .SocketTimeoutException: > > timeout > > And the rest of that stack trace? It is hard to provide advice without > context. We need to know what is timing out when trying to do what. > > > We have 4 C5.18x large vms running tomcat 8 behind AWS application load > > balancer. We are seeing socket timeouts during peak hours. What should be > > the configuration of tomcat if we get 60,000 to 70,000 requests per > minute > > on an average ? > > > > Tomcat 8.0.32 on Ubuntu 16.04.5 LTS > > Tomcat 8.0.x is no longer supported. > > > Below is the java version: > > > > java version "1.8.0_181" > > Java(TM) SE Runtime Environment (build 1.8.0_181-b13) > > Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode) > > > > > > Below is the server.xml connector configuration: > > > > <Connector port="8080" > > protocol="org.apache.coyote.http11.Http11Nio2Protocol" > > Why NIO2? > > Mark > > > > connectionTimeout="20000" > > > > URIEncoding="UTF-8" > > redirectPort="8443" /> > > > > We have 4 C5.18x large vms and each vm has nginx and tomcat instance > > running. All the 4 vms are connected to AWS application load balancer. > > > > I tried to add maxConnections=50000 but this does not seem to have any > > affect and still saw the timeouts > > > > Thanks and Regards > > Ayub > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- -------------------------------------------------------------------- Sun Certified Enterprise Architect 1.5 Sun Certified Java Programmer 1.4 Microsoft Certified Systems Engineer 2000 http://in.linkedin.com/pub/ayub-khan/a/811/b81 mobile:+966-502674604 ---------------------------------------------------------------------- It is proved that Hard Work and kowledge will get you close but attitude will get you there. However, it's the Love of God that will put you over the top!!