Hi
I'm trying to track down why the creation of socket connections on my
system is taking several minutes. I initially noticed this when
attempting a JDBC connection but even the simple
Socket socket = new Socket("host",port);
(from isAnythingListeningOn)
is taking several minutes even to non database (1433) machines (i.e port
22 connections are also very slow)
If I create several sockets in the same code, the first one takes
a long time, subsequent ones are essentially instantaneous.
We have a tomcat server running on the same machine that is happlily
making very fast JDBC connections.
A Perl script using
(IO::Socket::INET->new(PeerAddr => 'host',
PeerPort => 'port',
Proto => 'tcp',
has no problems making fast connections.
The fact that subsequent and the Tomcat connections are fast suggests
something is cached and/or it's the environment but ...
Java version 1.4.2, a similar problem was reported on
http://forum.java.sun.com/thread.jsp...sageID=2295073
Any advice?
Thanks
Mike