You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gokul <go...@gmail.com> on 2016/05/23 17:11:17 UTC

Soap service in Tomcat - Slow

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.

Any help is appreciated.

-Gokul

Re: Soap service in Tomcat - Slow

Posted by Mark Thomas <ma...@apache.org>.
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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Soap service in Tomcat - Slow

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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?

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
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXQ0CPAAoJEBzwKT+lPKRY5LEQALUsb/qJkrF6Z8ed0FYJeiPG
8iC1ChB/BP+VYvLuHUPV03n4Jn61ZEt8xDL0h3qc5dYp65HYvJ+rP8PN75iXd051
/IarSdPm6OjdK/aQapaFNxzGgMoPOGJVMWOXWZjWcxmlA66DwjLMXruPkuZfBcpr
XCyHEymmbq1HAolNzSXJD62vGkoEVvILgWJtZ5cI9uuhxjzIIXOAoPkXqhX39H/i
BsE1wkeIBVzE4ZI1KXWUCrTZE7Z/Towv/ZE4m/Tw9OyP4CJr5xuvM8LX6NLieLMq
6ESSYON47xaPEXF69t+Gc/inH0Wpth/UtgTCRiXCHqfcINht9HFzKjgjbsnNsIxC
jCyo0VNi9DwSm/yhOEVPcE5Jdqr+1VuNTsz5mFBH/UzrGQC0ez/HkUKDgS7/bBvl
tgFxfrJhOHWGVw9fGKAapf122IY1VeigKIj2xjW2bJlgtkxI93n+bN2BquAky7g/
T4oyhixtmWFXDwNWP6cjLEg/aquZfTLht6t+qYBwVUGkJFRW+50Y8L7zUwOcnp2l
YE9tuduODGdLTtFDGNwagY0ei1P58ntM2MPiFby8kBV4KmzB7bHThDi+HhNJkZ0C
3V3ObZuDClMltA1RFhjMxXwXcXEC2YQXtMisz8Dwdoen6iAeZGy76B73L3D/yAHT
KaVcAzgKdkiTPutkLyjk
=EN9B
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org