Re: SQL Server 200 JDBC Driver Connection too slow when using IP address
- From: "joeNOSPAM@xxxxxxx" <joe.weinstein@xxxxxxxxx>
- Date: 26 Aug 2006 07:59:38 -0700
leocortes@xxxxxxxxx wrote:
We have developed an application which uses Tomcat + ApacheSSL
installed on Server 1 and connects to a SQL SERVER 2000 database
installed on Server 2. They connect thru a SQL SERVER 200 JDBC
Microsoft Driver with SP3 (the latest one available). We had connected
the application to the database via the following connection string:
"jdbc:microsoft:sqlserver://192.168.1.100:1433;databaseName=clasioem",
Everything was working fine since we installed the application two
months ago but a few days ago, the application didn't work and after
recovering the application, the connection to the database was very
sloooow. So, the solution was to change the SQL SERVER 2000 server to
the same box where the application resides (both now lives on Server 1)
and kept the same connection string, obviosuly changing the IP of the
database server (Server 1 IP). The slowness problem persisted so what
we did was to change the IP of the database server for the "localhost"
text and the string now looks something like this:
"jdbc:microsoft:sqlserver://localhost:1433;databaseName=clasioem",
For our big surprise, the application ran flawlessly and the connection
to the database was very fast. We switched again the "localhost" string
for the IP of the server (Servre 1 IP), and the connection dropped
instantly.
Any answers about this, they will be fully appreciated..
Hi. It has something to do with how your network lookup is set up
on your box. It has nothing to do with the driver. The driver is simply
asking the JVM, which asks the OS, for a socket to a machine.
It is the OS's job to find the machine. The driver passes on the
machine name or IP address in the same way, unchanged and
unexamined to the same call.
Joe Weinstein at BEA Systems
.
- References:
- Prev by Date: SQL Server 200 JDBC Driver Connection too slow when using IP address
- Next by Date: Re: XA and 2000 backwards compatibility
- Previous by thread: SQL Server 200 JDBC Driver Connection too slow when using IP address
- Next by thread: Re: setReadOnly(true) with SQL Server 2005 JDBC Driver v1.0 released
- Index(es):
Relevant Pages
|
Loading