On 23/05/2016 18:40, Christopher Schultz wrote: > Gokul, > > On 5/23/16 1:11 PM, Gokul wrote: >> Hello, > >> I have a webservice application deployed in Tomcat 7 and getting 6 >> secs response time for method calls. > >> Below is my environment information. > >> Tomcat Version: Tomcat/7.0.69 Java Version : JRE7 OS: RHEL 6.7 > >> So, everytime when a webservice method is called the total time >> taken for each method is minimum 5 seconds. I am trying to find if >> there is a specific Tomcat fine tuning that I need to follow. > >> The webservice connects to Oracle JDBC 11G database and the same >> version of webservice app running on IBM Websphere, connecting to >> the same database is giving 400 ms as response time. > > Thread dump during the 5-second pause?
My guess is the thread dump will show no connection pool or maybe a poorly configured one. Mark > > Initial guesses: > > 1. DNS reverse-lookup taking a long time (disable DNS lookups) > 2. Entropy exhaustion for crypto operations (improve entropy source) > 3. Poorly-configured <Connector> with a 5-second HTTP keepalive timeout > > #2 usually brings everything to a halt, so that's unlikely to be the > problem if your requests are always taking 5 seconds. > > #3 would only be a problem if you were using the BIO connector and all > request-processor threads were in use. > > We will need more information to be able to help you. A thread dump is > the best thing to evaluate. > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org