Thread

  1. Memory leak in ODBC driver

    PostgreSQL Bugs List <pgsql-bugs@postgresql.org> — 2001-03-09T15:41:16Z

    Terry Carlin (terry@greatbridge.com) reports a bug with a severity of 2
    The lower the number the more severe it is.
    
    Short Description
    Memory leak in ODBC driver
    
    Long Description
    As part of Great Bridge QA testing, we run the AS3AP, TPC-C, and TPC-D 
    benchmarks using 1 to 100 users.  Our benchmarking tool is Benchmark 
    Factory.  It is a WinNT/Win2000 application.  It uses ODBC to connect to PostgreSQL as there is no native driver for PostgreSQL yet.  Benchmark Factory will run as many transactions as it can during a given timeframe.
    
    We have found that there is a memory leak in the PostgreSQL ODBC drivers. The system memory grows 100k to 300k every five seconds during the test. We are hitting from 500 to 1100 transactions per second.  After we get through several hundred thousand transactions, we run out of swap space on the Win2000 box. The Win2000 box has about 1.2 gig of swap space.
    
    We have found this behavior in all versions of the ODBC driver all the 
    way back to the 6.50.000 ODBC driver.
    
    We loaded Oracle8i onto our benchmark machine and ran the same tests.  We observed that there was no memory growth during these tests.
    
    I have captured the "mylog" file and placed it on a ftp site for 
    downloading.  There are two versions of this file.
    The full one is about 55 mb and the second is a "head -10000" of that 
    file.  It is about 500k.
    
    The filenames are:
    ftp://linux1000.dn.net/pub/mylog_1180.log and
    ftp://linux1000.dn.net/pub/mylog_1180_10000.log
    
    We will provide any assistance and resources needed to help squash this bug.
    
    Terry Carlin
    VP QA & Lab
    Great Bridge LLC
    
    terry@greatbridge.com
    
    
    
    
    
    Sample Code
    
    
    No file was uploaded with this report
    
    
    
  2. RE: Memory leak in ODBC driver

    Inoue, Hiroshi <inoue@tpf.co.jp> — 2001-03-10T03:37:10Z

    > -----Original Message-----
    > From: pgsql-bugs@postgresql.org
    > 
    > Terry Carlin (terry@greatbridge.com) reports a bug with a severity of 2
    > The lower the number the more severe it is.
    > 
    > Short Description
    > Memory leak in ODBC driver
    > 
    > Long Description
    > As part of Great Bridge QA testing, we run the AS3AP, TPC-C, and TPC-D 
    > benchmarks using 1 to 100 users.  Our benchmarking tool is Benchmark 
    > Factory.  It is a WinNT/Win2000 application.  It uses ODBC to 
    > connect to PostgreSQL as there is no native driver for PostgreSQL 
    > yet.  Benchmark Factory will run as many transactions as it can 
    > during a given timeframe.
    > 
    > We have found that there is a memory leak in the PostgreSQL ODBC 
    > drivers. The system memory grows 100k to 300k every five seconds 
    > during the test. We are hitting from 500 to 1100 transactions per 
    > second.  After we get through several hundred thousand 
    > transactions, we run out of swap space on the Win2000 box. The 
    > Win2000 box has about 1.2 gig of swap space.
    > 
     
    I've just committed a change to CVS.
    It would resolve the memory leak a little.
    
    regards,
    Hiroshi Inoue 
    
    
  3. RE: Memory leak in ODBC driver

    Terry Carlin <terry@greatbridge.com> — 2001-03-13T16:15:07Z

    Just wanting to let you know that your fixes to the ODBC driver memory 
    leak have corrected this bug.
    We retrieved about 12 million rows over about 17 hours of automated 
    testing starting with one user and ending up with 100 users and the 
    memory used in the Win2000 did not increase except when we added a new user. 
    
    This is great!
    
    We are now running a TPC-C benchmark using 1 to 100 users. The test looks 
    good so far.  This will take about 17 hours to complete and will test 
    updating and retrieval.  We will let you know how that turns out.
    
    If you ever need to have us run these tests to help debug any problems or 
    test any performance issues, please let us know and we will be happy to 
    help out.
    
    
    Thanks again
    
    Terry Carlin
    VP QA and Lab
    Great Bridge LLC.
    
    >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
    
    On 3/9/01, 10:37:10 PM, "Hiroshi Inoue" <Inoue@tpf.co.jp> wrote regarding 
    RE: [BUGS] Memory leak in ODBC driver:
    
    
    > > -----Original Message-----
    > > From: pgsql-bugs@postgresql.org
    > >
    > > Terry Carlin (terry@greatbridge.com) reports a bug with a severity of 2
    > > The lower the number the more severe it is.
    > >
    > > Short Description
    > > Memory leak in ODBC driver
    > >
    > > Long Description
    > > As part of Great Bridge QA testing, we run the AS3AP, TPC-C, and TPC-D
    > > benchmarks using 1 to 100 users.  Our benchmarking tool is Benchmark
    > > Factory.  It is a WinNT/Win2000 application.  It uses ODBC to
    > > connect to PostgreSQL as there is no native driver for PostgreSQL
    > > yet.  Benchmark Factory will run as many transactions as it can
    > > during a given timeframe.
    > >
    > > We have found that there is a memory leak in the PostgreSQL ODBC
    > > drivers. The system memory grows 100k to 300k every five seconds
    > > during the test. We are hitting from 500 to 1100 transactions per
    > > second.  After we get through several hundred thousand
    > > transactions, we run out of swap space on the Win2000 box. The
    > > Win2000 box has about 1.2 gig of swap space.
    > >
    
    > I've just committed a change to CVS.
    > It would resolve the memory leak a little.
    
    > regards,
    > Hiroshi Inoue