You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rapthor <ra...@lycos.de> on 2007/08/24 14:56:17 UTC

Tomcat response time extremely high (minutes)

Hello,

my Tomcat 6.0.13/14 server is responding in a very long time. It does not
matter if I try to start the main page of the server or one of my webapps.
About 2 minutes for each website. This is not the case, if I test on my
local machine with "http://localhost:8080/myapp" (IE or Firefox on a Windows
XP machine).

First I supposed it was something wrong with the installation of Tomcat
6.0.13 so I downloaded the new 14er version. Suddenly everything was
responding like a charm. Even working on a machine in the network was OK
now. But after 1 day the same issue reappeared (response times of about 2
minutes).

I did not change anything in the Tomcat configuration except for server.xml
which is edited by ECLIPSE I suppose:

      <Host appBase="webapps" autoDeploy="true" name="localhost"
unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

      <Context docBase="C:\Programme\tomcat\eclipsewebapps\Asset Register"
path="/ar" reloadable="true" source="org.eclipse.jst.jee.server:Asset
Register"/></Host>

What is wrong? What could be wrong? The machines in the network are in
another subnetwork. My machine is for example IP 10.45.2.35 and the network
machine is on IP 10.45.14.26. Subnet mask 255.255.224.0.

Any ideas?
-- 
View this message in context: http://www.nabble.com/Tomcat-response-time-extremely-high-%28minutes%29-tf4323432.html#a12311908
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Tomcat response time extremely high (minutes)

Posted by Nabble-Member1 <tt...@nds.com>.
Hi  Rapthor,

I'm having similar problem.  Has your isue resolved?  Can you share the
resolution?
Thanks

Thanh


Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Rapthor,
> 
> Rapthor wrote:
>> But after 1 day the same issue reappeared (response times of about 2
>> minutes).
> 
> When you observe the loooong response time, try doing a thread-dump of
> the JVM to see what's going on. You can see which threads are waiting on
> what. You'll probably see a lot of threads doing nothing (waiting for
> requests) and one thread doing something (the thread that's taking 2
> minutes).
> 
> You can even take multiple thread dumps and see if anything changes, or
> if the thread is sticking on something in particular.
> 
> (Recently, someone posted a question about startup times using APR,
> which uses /dev/random for randomness data. If you are using a native
> random number source for something (like encryption, or HTTPS, or secure
> random session ids, or anything like that), you might be blocking
> waiting for randomness to appear on that device. If you run out of other
> options, you might want to read that thread for some potential insight).
> 
> - -chris
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGzue49CaO5/Lv0PARAq2kAJ9uwikNurXp+ILKu+/46AKvKwSLlACeKMEd
> hXQ3caNvX1vh96i7plOkYjc=
> =xta1
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-response-time-extremely-high-%28minutes%29-tp12311908p14408225.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Tomcat response time extremely high (minutes)

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

Rapthor,

Rapthor wrote:
> But after 1 day the same issue reappeared (response times of about 2
> minutes).

When you observe the loooong response time, try doing a thread-dump of
the JVM to see what's going on. You can see which threads are waiting on
what. You'll probably see a lot of threads doing nothing (waiting for
requests) and one thread doing something (the thread that's taking 2
minutes).

You can even take multiple thread dumps and see if anything changes, or
if the thread is sticking on something in particular.

(Recently, someone posted a question about startup times using APR,
which uses /dev/random for randomness data. If you are using a native
random number source for something (like encryption, or HTTPS, or secure
random session ids, or anything like that), you might be blocking
waiting for randomness to appear on that device. If you run out of other
options, you might want to read that thread for some potential insight).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzue49CaO5/Lv0PARAq2kAJ9uwikNurXp+ILKu+/46AKvKwSLlACeKMEd
hXQ3caNvX1vh96i7plOkYjc=
=xta1
-----END PGP SIGNATURE-----

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