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]