Re: Tomcat response time extremely high (minutes)

2007-12-18 Thread Nabble-Member1

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 lng 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat is slow with router configured

2007-12-18 Thread Nabble-Member1

Hi Tomcat experts,

I have a war file deployed in a Tomcat server (Jakarta-tomcat 5.5.9) running
on a windows server 2003.  Web server accesses MySQL server running on a
different box, also Windows server 2003.
The web app is fast if I configured network bridge mode (both Web server and
DB server have same subnet 192.168.1.x).  But it is very slow if the network
is configured as router mode (Web server and DB server is in different
subnets - 192.168.1.1 for web, 196.168.2.1 for DB, the 2 boxes communicate
via a router device).  

Is there settings in Tomcat to deal with this?

I tested MySQL client running on Web server side.  MySQL client is very fast
for both bridge mode and router mode.
I also tested the file transfer.  The MS ftp is very fast for both bridge
mode and router mode on the 2 boxes.

I appreciate very much for your help

TT
-- 
View this message in context: 
http://www.nabble.com/Tomcat-is-slow-with-router-configured-tp14408452p14408452.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat is slow with router configured

2007-12-19 Thread Nabble-Member1

Hi all,
Thanks for your inputs.
The issue is at MySQL.  With router mode, even using IP address, MySQL sends
TCP messages to resolve hostname.  The threads are timed out after each one. 
It runs fast after I disabled host name resolve my MySQL server.   I got the
information from this forum.

http://www.nabble.com/Connections-from-localhost-fast.-Connections-anywhere-else-slow.-to129994.html#a143316

Thanh


Peter Crowther wrote:
> 
>> From: Gary Evesson [mailto:[EMAIL PROTECTED]
>> Try using the IP address in the driver specification rather
>> than the name of
>> the machine. THat will tell you if it is a name resolution issue.
> 
> The connection is working but slow - I don't think the OP specified
> whether they were using the name or the IP address in the driver spec. 
> Using the IP address will handle *most* instances of slow connection; the
> one it won't is where some form of SSPI authentication is happening and
> the two machines need to chat to authenticate.  The OP hasn't stated
> enough about the environment to rule this out, though I accept it's
> unlikely with MySQL.
> 
> - Peter
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-is-slow-with-router-configured-tp14408452p14423431.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]