-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Adam

> We are using OpenDbx (C++) with MSSQL, on Ubuntu 12.04. Our 
> application is long running with many calls to the database. Our 
> application uses a local OpenDBX::Conn object to connect (bind), 
> retrieve result, finish results, unbind and then the local 
> OpenDBX::Conn object goes out of scope when function returns.
> 
> After a period of time our program crashes, with the usual error 
> being "too many open files". Our process open file limit is the 
> default 1024. After some debugging we found that a file descriptor
> to /dev/urandom is left open for each connection we made to the
> data base. Of course after roughly 1024 connections to the database
> the application crashes with the above error as would be expected.

/dev/urandom is not used by OpenDBX directly but I think by FreeTDS if
you are using the MSSQL backend.

> Has anyone experienced this? Is there a workaround or patch? Are
> we using the library correctly?

Can you please have a look if you call Conn::unbind() and
Conn::finish() before the objects go out of scope? This is important
as the cleanup can't be done by the destructor of the class.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS4qihAAoJEA3e3tWv2uU+7eEQAIIIZUtvrUQCTf17yn/9vyLw
cs0B8DE0kp9Dh3uUmQYWgjTlOmMofB/Z0HdQs7/1hE/LfZA3HYAQtLjmtpsWumRo
4Egxgi19KmHX+ZMowNpRlc4c/rrx3xI/VbeW0cMzRT1OdqdXUMebAsFJKyn3uCrP
pJtm7Ead00ql66Sa789tFfCpaqvZXV/9xq4ESFOP0V3BQoBF7XkyoynZ4ZWPY6lQ
0pLYn0OCSXOlWpk+9fKwKLNtQ7dY/VomR0OMM8rrVfmPaCwJI3pcMB/3HL0BBPP+
xRQHTdCQVMDPi2txp5DbKURTf0H9MkjxHGP64Pn6qqaM9294Q7trzzpz9W+FJeR+
r8D9ik0TXHVULK+cPQ5s2baN/oXT83UBTMma8rgKkj/3SlwXIz1DQccyx+NpnW4B
rXqkfXdtgdN/FKXqHLM9bMgnKyVPc9y8PKMULkYZJniia2rzNGx0MOjiTUO4Topt
nbbAeW0By+FyE6ohm3PoqEKkLpbniThAQAiV83bhVhWrIorADSq+5eF5sBzMFgTl
BkgxZPMDotJUCRYIcgSqkaK/CH94LZClWDWQDGXwnfA+OFGbfI/SeshsHTO6sx4F
DGYvDon73Ge6Q2vdvWEZDd5d21Ua4MPtkv5jFSIb0tGXjufDjNT+C5scMKadY6ZE
oVlbRhwbNu74gUw+0wxK
=UY1t
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
libopendbx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX

Reply via email to