Huge memory consumed with myOdbc and VB.NET
Huge memory consumed with myOdbc and VB.NET
am 03.05.2006 10:11:26 von Patrik Lindvall
------_=_NextPart_001_01C66E89.2CDD310A
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
=20
Hi All!
When using MyOdbc3.51.12 with VB.net(1.1) and filling a dataset from
table all available memory get consumed after a couple of 500 queries.
The problem only arises with tables that contains a huge amount of
records(>100000) and that leads me to the conclusion that the whole
table for some reason gets into odbcmemory, and performance is also
lousy.
The datatable in the dataset only contains the row from query (SELECT *
from XXX Where ID=3D'1') and ID is primary KEY.
=20
The problem only arises when Dataadapter.MissingSchemaAction =3D
MissingSchemaAction.AddWithKey is used in dataadapter, without that
line the problem does not show!
=20
The program runs without problem on 2003-server/wts and ordinary window
clients.
The problemserver is an 2003 windows server std edition SP1 citrix
metaframe (4.0.17-max-debug /odbc 3.51.12)
=20
The program exits after 500 queries on dataadapter.fill with exception,
"Object reference not set to an instance of an object" and about 1.5 GB
memory is consumed!
=20
Any help on this issue is appreciated!
=20
Regards
Patrik
=20
Vb-code:
Imports System.Data.Odbc
=20
Module Module1
=20
Private cn As OdbcConnection
Private Dataadapter As OdbcDataAdapter
=20
Sub Main()
=20
Dim ds As New DataSet
Dim sql As String
Dim count as integer =3D 10000
cn =3D New OdbcConnection("DSN=3Dtest")
sql =3D "SELECT * FROM xxx where id=3D '1'"
Try
cn.Open()
Dataadapter =3D New OdbcDataAdapter(sql, cn)
Dataadapter.MissingSchemaAction =3D
MissingSchemaAction.AddWithKey '*** When removing this line the isue
doesn't arise!!! ***
Catch ex As Exception
Console.WriteLine(ex.Message)
Console.ReadLine()
End
End Try
=20
Do
Try
Dataadapter.Fill(ds, "table")
Catch ex As Exception
Console.WriteLine("Count:" & Count & vbCrLf &
ex.Message)
'"Object reference not set to an instance of an
object" after about 500 queries"
Exit Do
End Try
'Do som work!
=20
If Count Mod 100 =3D 0 Then
Console.Write(Count & ",(" & ds.Tables(0).Rows.Count &
")")
End If
ds.Tables("xxx").Clear()
Count -=3D 1
Loop Until Count <=3D 0
End Sub
=20
End Module
=20
=20
=20
=20
------_=_NextPart_001_01C66E89.2CDD310A--
RE: Huge memory consumed with myOdbc and VB.NET
am 03.05.2006 12:37:03 von David Dindorp
> Vb-code:
Please send code per attachment - mailers tend to mangle it.
Alternatively keep it below 80 characters or use a mailer that
supports format=3Dflowed.
> Imports System.Data.Odbc
> Module Module1
> Private conn As OdbcConnection
> Private adapter As OdbcDataAdapter
> Sub Main()
> Dim ds As New DataSet
> Dim sql As String
> Dim count As Integer =3D 10000
> conn =3D New OdbcConnection("DSN=3Dtest")
> sql =3D "SELECT * FROM xxx where id=3D'1'"
> Try
> conn.Open()
> adapter =3D New OdbcDataAdapter(sql, conn)
> adapter.MissingSchemaAction =3D MissingSchemaAction.AddWithKey
> ' When removing above line the issue doesn't arise!
> Catch ex As Exception
> Console.WriteLine(ex.Message)
> Console.ReadLine()
> End
> End Try
Your try..catch structure looks weird.
Below, you actually attempt to fill the dataadapter
whether you successfully connect to the database or not.
Is this intentional?
> Do
> Try
> adapter.Fill(ds, "table")
You're filling into a table named "table"...
> Catch ex As Exception
> Console.WriteLine("Count: {0}\r\n{1}", count, ex.Message)
> ' "Object reference not set to an instance of an object"
> ' after about 500 queries
> Exit Do
> End Try
> ' Do some work!
> If Count Mod 100 =3D 0 Then
> Console.Write("{0}, ({1})",Count,ds.Tables(0).Rows.Count)
> End If
> ds.Tables("xxx").Clear()
You're trying to delete a table that does not exist.
You've explicitly named the table "table" earlier,
so you'll get a null reference exception here in the
first execution of your loop.
Also, could you please post your database schema
(SHOW CREATE TABLE xxx)? The definition of primary keys will
have an effect on which code path your test case follows. You
mention that you use "id" as a primary key, but is it actually
defined as such in your database?
> Count -=3D 1
> Loop Until Count <=3D 0
> End Sub
> End Module
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg
RE: Huge memory consumed with myOdbc and VB.NET
am 04.05.2006 22:09:41 von David Dindorp
------_=_NextPart_001_01C66FB6.ADEE80BF
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
> Attached is a working example and with a schema for the table.
Much better, thank you :-).
I can confirm your findings using MyODBC 3.51.12-2.
It seems to leak ~35 bytes per query with MissingSchemaAction
set to Add and ~563 bytes using AddWithKey, none of which seems
to be a leak in managed territory.
A wild speculation could be that .NET tickles a particular MyODBC
function that leaks a 512 byte buffer...
> The program exits after 500 queries on dataadapter.fill with
> exception, "Object reference not set to an instance of an object"
> and about 1.5 GB memory is consumed!
It's not quite as bleak here, I cannot reproduce that.
Which version of MyODBC are you using?
(Note that the only useful MyODBC release number is the one that was
on the web page where you downloaded it - the version number on the
DLL is most often grossly inaccurate.)
> The application runs on more then 10 other servers without problem,
> it's just related to one server.
By "server", do you mean "MySQL client running on a server"
or "MySQL server"?
Enough questions, carrying on...
A MyODBC trace from each scenario would be good, that way we could
compare and see if any extra or different calls are made when
MissingSchemaAction is set to AddWithKey. Tracing seems to be
broken though, so we can't do that.
We can test if the number of rows has an effect on the amount
leaked. Should be straightforward.
The schema does seem to have an effect, so another thing to try
could be to remove fields from the table per a binary search algorithm,
until we know what exactly triggers this bug. With a little luck,
a particular nastyness in the schema (if any) can be found in less
than 10 tries.
Afterwards it could be helpful to try and run the test using another
database, just to be sure that it's really a MyODBC and not an ODBC
issue. Although it is much more likely to be a MyODBC issue.
When we cannot get any further, filing a bug report on
http://bugs.mysql.com is probably the next logical step.
(I have an open bug that's soon 2 years old, so if there's any
justice in the world, your issue will be fixed around 2008 ;-))
I've attached a modified version of your test case.
It's more complicated, but it can run without the user doing much
preparation. Also it can keep track of it's own memory usage.
It comes with a neat and simple...
Reproduction recipe (-:
- Setup MySQL server and database "test"
- Install MyODBC, MDAC and .NET Framework v2
- Fill in host, user, password and database in Module2.vbs
- Compile: "c:\> vbc Module2.vbs"
- Run Module2.exe
Reproduction recipe, not tickling leak:
- set 'leak' to False in Module2.vbs
- Compile
- Rerun test
Would you mind running a test with the modified version?
Just to get some actual numbers to compare with.
If it crashes early on, you'll need to decrease runs to 500
and probeMargin to 100 or so to get any useful numbers out..
------_=_NextPart_001_01C66FB6.ADEE80BF
Content-Type: text/plain; charset=us-ascii
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org
------_=_NextPart_001_01C66FB6.ADEE80BF--
RE: Huge memory consumed with myOdbc and VB.NET
am 04.05.2006 22:15:18 von David Dindorp
------_=_NextPart_001_01C66FB7.766C44E7
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Seems like MySQL nukes attachments on their mailing lists.
Renamed to "Module2.vb.txt", hope it gets through now.
------_=_NextPart_001_01C66FB7.766C44E7
Content-Type: text/plain;
name="Module2.vb.txt"
Content-Transfer-Encoding: base64
Content-Description: Module2.vb.txt
Content-Disposition: attachment;
filename="Module2.vb.txt"
SW1wb3J0cyBTeXN0ZW0uRGF0YQ0KSW1wb3J0cyBTeXN0ZW0uRGF0YS5PZGJj DQpJbXBvcnRzIFN5
c3RlbS5EaWFnbm9zdGljcw0KDQpNb2R1bGUgTW9kdWxlMg0KCUNvbnN0IGhv c3QgQXMgU3RyaW5n
ID0gImxvY2FsaG9zdCINCglDb25zdCB1c2VyIEFzIFN0cmluZyA9ICJyb290 Ig0KCUNvbnN0IHB3
ZCBBcyBTdHJpbmcgPSAiIg0KCUNvbnN0IGRiIEFzIFN0cmluZyA9ICJ0ZXN0 Ig0KDQoJQ29uc3Qg
cm93cyBBcyBJbnRlZ2VyID0gMTAwMDAwDQoJQ29uc3QgcnVucyBBcyBJbnRl Z2VyID0gNTAwMDAN
CglDb25zdCBwcm9iZU1hcmdpbiBBcyBJbnRlZ2VyID0gMTAwMDANCglDb25z dCBsZWFrIEFzIEJv
b2xlYW4gPSBUcnVlDQoJQ29uc3Qg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001_01C66FB7.766C44E7
Content-Type: text/plain; charset=us-ascii
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org
------_=_NextPart_001_01C66FB7.766C44E7--
RE: Huge memory consumed with myOdbc and VB.NET
am 05.05.2006 14:08:06 von Patrik Lindvall
David, thanks for your effort and suggestions on this issue, I will come
back to you as soon I can (later on next week) after some more tests!
The netV2 suggestions complicates the testing, but I'll give it a try!
And som answers to your questions..
>Which version of MyODBC are you using?
The version I have used is Myodbc 3.51.12-win32).
>By "server", do you mean "MySQL client running on a server"
or "MySQL server"?
We have about 10 installed MySQL servers (windows servers) and each
installation is from 1 to 30 clients using myODBC and 5 of these
installations is running Windows terminal server , the rest is ordinary
XP/2000 PC.
All installation is on customers own servers.
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg
RE: Huge memory consumed with myOdbc and VB.NET
am 12.05.2006 07:28:09 von Patrik Lindvall
I've some new information about the issue and it's seems to be related
to Windows 2003 servicepack 1.
An ugly workaround for the issue was to install an older version of
myOdbc(3.51.6).
The performance is also quite bad for some reason.
Further more MySQL support has been able to reproduce the problem.
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg
RE: Huge memory consumed with myOdbc and VB.NET
am 19.05.2006 11:16:17 von David Dindorp
Patrik Lindvall wrote:
> The program exits after 500 queries on dataadapter.fill with
> exception, "Object reference not set to an instance of an object"
> and about 1.5 GB memory is consumed!
I might've managed to reproduce it,
I now see 16910 bytes leaked per query.
It's a problem that comes and goes though,
I haven't accurately pin-pointed it..
> I've some new information about the issue and it
> seems to be related to Windows 2003 servicepack 1.
Any details?
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg
RE: Huge memory consumed with myOdbc and VB.NET
am 24.05.2006 10:52:54 von Patrik Lindvall
I let you know when further information is available.
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg