OrientDB-NET.binary icon indicating copy to clipboard operation
OrientDB-NET.binary copied to clipboard

ODatabase Connection not getting closed

Open jocelynk opened this issue 8 years ago • 4 comments

We are running into an issue where we are reaching the max number of concurrent connections. Even calling Close() or Dispose() on the database instance, we are seeing the connections not being disposed properly.

In the Close() method of the ODatabase class it does a check for _containsConnection, but that instance variable is never set to true so the connection is never closed. Please advise if this is a bug or if there is another way to dispose the database connection. #144

jocelynk avatar Sep 29 '17 20:09 jocelynk

Hi, we are also living the same problem. We modified the source code to test by adding _containsConnection = true, in the GetConnection method of ODatabase.cs (I send as attachment), but still we are seeing open connections when we list using console.sh by LIST CONNECTIONS command.

We are using two distributed nodes, running multithread console application with 4 threads and 1 static ODatabase object instance per thread. We are sending approx 400k commands in 10 hours and we see approx 1000 connections when we list using LIST CONNECTIONS command. When we terminate the application number of connections decrease gradually.

odatabase

eskikayab avatar Oct 05 '17 07:10 eskikayab

Deploy Preview for superstore-redwood-stripe ready!

Name Link
Latest commit 63f420f7cb8b3cfc001fce952278f84441dc6434
Latest deploy log https://app.netlify.com/sites/superstore-redwood-stripe/deploys/6671068b17e27f0008825128
Deploy Preview https://deploy-preview-486--superstore-redwood-stripe.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

eskikayab avatar Oct 05 '17 08:10 eskikayab

Any update on this issue?

jocelynk avatar Oct 27 '17 14:10 jocelynk

please share me the code for oreintdb 2.2.33 database connection through c#.net

user33 avatar Sep 18 '18 03:09 user33