Questions tagged [connection-leaks]
73 questions
0
votes
0 answers
JDBC PreparedStatement call within another JDBC PreparedStatement Connection Leak?
I have some code I'm maintaining that makes an embedded JDBC call within another. This smells wrong to me but more importantly I'm wondering if this will cause a connection leak?
public Table1 method1(){
String query = "SELECT id1, id2 FROM…

cassidius
- 118
- 1
- 9
0
votes
3 answers
Problems with BroadcastReceiver to detect connection or disconnection to Internet
The aim is to implement a BroadcastReceiver within my Android App that dynamically detects when the device changes its status of connection or disconnection to the Internet. I have tried with several tutorials and solution proposals, but I still…

Carlos Botero
- 319
- 3
- 11
0
votes
0 answers
Every time I source my R script it leaks a db connection
I cannot paste the entire script here, but I am explaining the situation. If you have ever got leaked DB connections then you would be knowing what I am talking about.
I have an R script file that has many functions (around 50) that use db…

Lazarus Thurston
- 1,197
- 15
- 33
0
votes
2 answers
Is this JDBC code prone to leaking?
I have this JDBC code implemented, and over the weekend we had an issue where connections were potentially leaked, and database functionality ceased working. Although I am not certain that is the problem, I wanted to pass it by the Stack Overflow…

Alexander Edwards
- 772
- 2
- 7
- 18
0
votes
1 answer
SQL Server connection handling, connection pooling, lifetime and leaked connections
I am trying to identify SQL connection leaks in my application. After some operations, when my application is idle (user not doing any activity), I see 7 connections with my database in the result set returned by sp_who2. The status for all…

Learner
- 4,661
- 9
- 56
- 102
0
votes
1 answer
C# MySQL ExecuteReader
I have a problem with my C# project. I use a MySQL database and I use the MySQL Connector driver from MySQL Website but I have a problem with the cursor and the connexion. Indeed, Visual Studio says that is impossible to read data from a second…

nboulfroy
- 201
- 3
- 14
0
votes
1 answer
How can I solve a max pool size - ASP.NET
Public Function QueryDataSet(ByVal strSQL As String) As DataSet
Dim ds As New DataSet
Dim dtAdapter As New SqlDataAdapter
objConn = New SqlConnection
With objConn
.ConnectionString = strConn
.Open()
End With
…
0
votes
0 answers
OkHttpClient leaking connection when using byteStream
I keep getting a connection leaked warning in my Logcat messages, even though I've closed every single body of every request I send out.
I have two wrapper methods for GET and POST requests, which initiate the request and pass back the…

Andrew Senner
- 2,479
- 1
- 18
- 24
0
votes
2 answers
Query about Connection leaks with Utility class
I have an JDBC utility class which hold the Resultset,Statement and Connection instances as global references.This class has basic two methods like 'execute'(has some parameters) and 'close' and inside execute, above instances are created and…
user1727557
0
votes
1 answer
tomcat webapp with dbcp pooling - pool threads are free, but http-bio threads cannot acquaore it
dear all!
I have a bit strange situation when sometimes (it's not repeat easily) my Tomcat web application fails in strange situation (if i correctly interpred thread dumps).
I have 100 pool threads in tomcat context pooling configuration, and all…

Mikhail Ivanov
- 113
- 2
- 3
- 10
0
votes
1 answer
Android emulator failing to install any apk file and showing android.app.ServiceConnectionLeaked
I am getting following error when trying to run any android applications in emulator with Android API 4.2(17) in eclipse ADT .Earlier my apps were running fine,but this problem started after restarting my machine.
[2013-03-25 18:25:42 -…

Samrat
- 161
- 2
- 16
0
votes
1 answer
Subsonic 3.0.0.4 leaking SQL connections?
I've been using Subsonic 3.0.0.4 (ActiveRecord approach) for a while, and I recently coded a small page that basically retrieves about 500 records for a given year, and then i just loop through each of them, creating new instances of the Active…

GR7
- 5,083
- 8
- 48
- 66
-1
votes
1 answer
connection leakage with hikari CP
I have jdbs template for sql for sql statements, and use hikari connection pool, after after several calls
i took exception, i used try-with-resources, where is my mistake?(Servlet Container -Tomcat)
public class SimpleJdbcTemplate {
private…

handsome16
- 51
- 2
- 7