`

jtds issue

阅读更多
Description:  
Opened: 2004-11-02 12:07
I have PAL Itn6, snapshot of ~12:00 yesterday installed in Tomcat 5.0.28
talking
to SQL server via a JNDI data-source and the JNDI driver
net.sourceforge.jtds.jdbc.Driver. When doing the PAL self-tests, it creates
vast
temporary files inside the Tomcat installation:

> pwd
/home/sybase/jakarta-tomcat-5.0.28/temp
> ls -l
total 13762224
-rw-r--r--   1 sybase   sybase   1465106432 Nov  1 18:16 jtds20228.tmp
-rw-r--r--   1 sybase   sybase   3934224384 Nov  1 18:58 jtds20230.tmp
-rw-r--r--   1 sybase   sybase   1643454464 Nov  1 18:58 jtds20231.tmp

Note that these files are left over from test runs yesterday evening; they seem
to have leaked. These files filled the space in the account running Tomcat and
stopped operations, both of PAL and of other services at CASU.

It's not clear whether the files are leaked when the tests are successful or
when they are aborted; some runs went each way.

We need to find some way of bounding the temporary space used and possibly of
redirecting it to a different directory.  We also need to document the amount
of
space needed as a function of the size of the DB.

This is a blocker. If we don't fix it, then it will not be possible to run PAL
on CASU machines. For now, during PAL tests, I'll delete the files manually as
they are leaked. However, it won't be possible to registe the service for
general use until the problem is solved.
------- Comment #1 From Guy Rixon 2004-11-02 14:31:02 -------
I've looked at the issues log of the jTDS project and it looks like this make
be
a mis-feature of their JDBC driver. They suggest that the temporary files are
deleted when the JVM exists (NBG for us) or when finalizers are called for
"certain classes" to do with the JDBC connection. I have may PAL set up with
connection pooling and I now suspect that the connections are never closed so
the files are never deleted. I've asked jTDS about this; no reply yet.

Anyway, even if this is not fixable in our PAL code we need to characterize it
and  to explain it in the installation documents. It may be that we have to
avoid JNDI data-sources and associated connection pooling.
------- Comment #2 From Martin (Cindy?!) 2004-11-02 14:59:09 -------
An alternative is to use the direct JDBC connections instead of data sources;
see the WEB-INF/classes/default.properties for which properties to set.  We use
the Microsoft JDBC drivers at ROE and don't seem to get this problem.

------- Comment #3 From Guy Rixon 2004-11-02 15:04:31 -------
Where does one get the MS JDBC driver? I couldn't find a download link on MS'
site. Is there a licence fee?
------- Comment #4 From Martin (Cindy?!) 2004-11-02 16:10:50 -------
Here's the link to the download :-) 

http://www.microsoft.com/downloads/details.aspx?FamilyID=ee91ad1a-1ee4-49e1-95ea-e3f0e39114a9&DisplayLang=en

I don't know if it includes all the patches and stuff.  I don't believe there's
any licence fee.

------- Comment #5 From Martin (Cindy?!) 2004-11-09 12:01:00 -------
I believe this has been resolved by using the m$ drivers
------- Comment #6 From Guy Rixon 2004-11-09 14:03:10 -------
Yes, the MS driver now works at IoA and avoids this problem. Thanks for
providing the link.

The MS driver is also faster, by about a factor of 20, in the self-test case of
a large ADQL output.
分享到:
评论

相关推荐

    jtds的驱动包

    **JTDs驱动包详解** JTDs(Java Tiny Database Server)是一款开源的Java数据库连接器,主要用于连接Microsoft SQL Server和Sybase ASE数据库。在Java应用程序中,它提供了一个轻量级的替代方案,与Oracle的JDBC...

    jtds1.3.1最新版本

    《jtds1.3.1:连接SQL Server的高效JDBC驱动详解》 在Java应用程序与Microsoft SQL Server数据库交互时,JDBC驱动扮演着至关重要的角色。jTDS是其中一个广泛使用的开源JDBC驱动,它专为SQL Server设计,提供了高效...

    jtds驱动包 net.sourceforge.jtds.jdbc.Driver

    《jtds驱动包 net.sourceforge.jtds.jdbc.Driver详解》 在Java编程中,数据库连接是不可或缺的一部分。当涉及到与Microsoft SQL Server或Sybase数据库进行交互时,`jtds`驱动包扮演了至关重要的角色。`...

    JTDS连接SQLSERVER、Sybase数据库

    JTDS(Java Thin Database Driver for SQL Server and Sybase)是一个开源的JDBC驱动程序,它允许Java应用程序连接到Microsoft SQL Server和Sybase ASE(Adaptive Server Enterprise)数据库。这篇博客文章“JTDS...

    jtds驱动下载(官网的)

    **JTDs驱动详解** JTDs是一款开源的Java类型驱动程序,专为连接到Microsoft SQL Server和Sybase Adaptive Server Anywhere数据库而设计。这款驱动以其高效、小巧和跨平台的特性,在Java开发者中广受欢迎。JTDs的...

    jtds-1.3.1.jar包, kettle连接

    标题中的“jtds-1.3.1.jar包,kettle连接”指的是在Kettle数据集成工具中,为了能够连接到SQL Server数据库,需要使用名为jtds的Java数据库连接器(JDBC驱动),其具体版本为1.3.1。jtds是一个开源的JDBC驱动程序,...

    jtds-1.2.jar、jtds-1.2.2.jar、jtds-1.2.5.jar、jtds-1.2.7.jar、jtds-1.3.1.jar驱动

    标题中的“jtds-1.2.jar、jtds-1.2.2.jar、jtds-1.2.5.jar、jtds-1.2.7.jar、jtds-1.3.1.jar驱动”指的是用于连接SQL Server数据库的JDBC驱动程序的多个版本。jTDS是一个开源的Java类型4 JDBC驱动,它专门设计用于与...

    jtds-1.2.2.jar

    标题中的"jtds-1.2.2.jar"是一个特定版本的JDBC驱动程序,由Java Thin Database Server (JTDs)项目提供。JTDs是一个开源的、轻量级的 JDBC 驱动,它允许Java应用程序通过标准的JDBC API连接到Microsoft SQL Server和...

    java jtds连接数据库

    Java JTDs 连接数据库是一种使用Java编程语言与多种数据库进行交互的方式,特别是针对Microsoft SQL Server和Sybase Adaptive Server。JTDs(Java Thin Database Driver)是一个开源的 JDBC 驱动程序,它提供了轻量...

    sqlserver驱动包 jtds-1.3.1.jar

    《SQLServer驱动包jtds-1.3.1.jar详解》 在数据库连接的世界里,SQL Server作为一款广泛使用的数据库管理系统,其高效稳定性和强大的功能深受开发者的喜爱。为了与Java应用程序进行交互,通常我们需要依赖数据库...

    JTDS连接数据库分享.rar

    JTDS(Java Thin Database Driver for SQL Server)是一种开源的JDBC驱动程序,专门用于与Microsoft SQL Server和Sybase ASE数据库进行交互。这个压缩包“JTDS连接数据库分享.rar”包含了几个关键组件,可以帮助用户...

    JTDS和JDBC连接Sybase数据库

    标题中的“JTDS和JDBC连接Sybase数据库”涉及到的是Java开发中的一种数据库连接技术,主要聚焦于如何通过Java应用程序与Sybase数据库进行交互。Sybase是一种流行的关系型数据库管理系统,广泛应用于企业级应用中。...

    jtds-1.2.7 文件

    《jtds-1.2.7在Android移动开发中的应用详解》 jtds-1.2.7是一款专为Java开发者设计的轻量级数据库连接驱动,尤其适用于Android应用程序开发。该驱动程序是开源的,提供对SQL Server和Sybase数据库的高效、稳定的...

    java连接池jtds连接数据库

    在Java中,有许多库可以实现连接池功能,如C3P0、DBCP、HikariCP以及我们今天要讨论的jTDS。 jTDS是一个开源的Java驱动程序,专门用于连接Microsoft SQL Server和Sybase数据库。它实现了JDBC API,使得Java开发者...

    jtds 驱动包(jar)

    标题"jtds 驱动包(jar)"指的是jtds驱动程序的Java Archive (JAR)文件。jTDS是一个开源的Java类型数据库驱动(JDBC driver),专为Microsoft SQL Server和Sybase数据库设计。这里的“jar”是Java应用程序的打包格式,...

    jtds.jar jtds.jar

    jtds.jarjtds.jarjtds.jarjtds.jarjtds.jarjtds.jarjtds.jarjtds.jar

    jtds 1.2.2

    《JTDs 1.2.2:连接SQL Server的高效驱动详解》 在Java编程领域,数据库连接是不可或缺的一部分,而JDBC(Java Database Connectivity)则是Java与各种数据库进行交互的标准接口。然而,尽管JDBC提供了通用性,但在...

    jtds-1.2.6jar包

    **jtds-1.2.6.jar包详解** 标题中的"jtds-1.2.6jar包"指的是一个Java数据库连接池组件的版本号为1.2.6的JAR文件。jTDS(Java Type 4 Driver for SQL Server)是一个开源的、完全实现了JDBC(Java Database ...

    jtds JDBC连接驱动

    **JDBC连接驱动详解——以jtds为例** 在Java应用程序中,JDBC(Java Database Connectivity)是连接数据库的标准接口,允许Java程序与各种不同类型的数据库进行交互。JDBC驱动程序是实现这些接口的Java类库,它们...

    jtds1.2.7.dist

    《jtds1.2.7.dist:连接SQL Server数据库的安卓开发利器》 在IT行业中,数据库管理和数据交互是核心部分,特别是在安卓应用开发中。"jtds1.2.7.dist"是一个专门为安卓开发者设计的工具,用于与Microsoft SQL Server...

Global site tag (gtag.js) - Google Analytics