Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ODatabase Connection not getting closed #145

Open
jocelynk opened this issue Sep 29, 2017 · 4 comments
Open

ODatabase Connection not getting closed #145

jocelynk opened this issue Sep 29, 2017 · 4 comments

Comments

@jocelynk
Copy link

jocelynk commented Sep 29, 2017

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

@eskikayab
Copy link

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
Copy link

By the way, we see "Retry patern exception" error in our logs occasionally. We think it is thrown by the following:

connection

@jocelynk
Copy link
Author

Any update on this issue?

@user33
Copy link

user33 commented Sep 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants