简体   繁体   English

在VMWare上使用SQJDBC4驱动程序时数据库连接缓慢

[英]DB Connection Slow when using SQJDBC4 Driver on VMWare

I am facing a peculiar problem. 我正面临一个特殊的问题。

Application Details Java : Jre 1.6 Db: MS SQL 2008 R2 (On Vmware) OS: Windows 2008 R2 (On Vmware) 应用程序详细信息 Java:Jre 1.6 Db:MS SQL 2008 R2(在Vmware上)操作系统:Windows 2008 R2(在Vmware上)

Problem: Whenever i am trying to connect to the database using sqljdbc4.jar it takes almost 5 seconds to make a connection. 问题:每当我尝试使用sqljdbc4.jar连接到数据库时,几乎需要5秒钟才能建立连接。 But if i use jtds driver it connects instantly. 但是,如果我使用jtds驱动程序,它将立即连接。

Now if i try to connect to a similar database hosted on single physical server it connects instantly using both the drivers. 现在,如果我尝试连接到单个物理服务器上托管的类似数据库,它将立即使用两个驱动程序进行连接。

Please help me if any body has faced this issue. 如果有人遇到此问题,请帮助我。

Sorry.. Had got wrong information about the connection driver being used. 对不起..有关正在使用的连接驱动程序的信息有误。 Configured the application with sqljdbc4.jar and the issue was resolved. 使用sqljdbc4.jar配置了应用程序,此问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM