Questions tagged [connection-leaks]

73 questions
2
votes
4 answers

Play Framework 2.0.4 and BoneCP - so how to avoid connections leak?

There is just one place in my app, that uses connections. It looks something like this: Connection conn = Db.getConnection(); try { // do some job } finally { conn.close(); } So, connection is always closed. But after some time i always get…
2
votes
1 answer

Releasing connections when using PoolingClientConnectionManager?

I'm using an Apache DefaultHttpClient with a PoolingClientConnectionManager and BasicResponseHandler. These are shared between different threads, and each thread creates its own HttpRequestBase extension. Do I need to manually tell the manager that…
1
vote
1 answer

How to debug leaking connections in an ASP.NET 2.0 Web Services application?

I have an app, which is a bunch of c# web services sitting on top of ASP.NET 2.0 in IIS7 on Win2k3. Following the last release, we keep getting connection timeouts. A quick investigation using Perfmon confirmed that our application is leaking…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
1
vote
0 answers

Mongodb Connection leak using mongo-go driver

I'm developing a Go application that integrates with MongoDB to create, read, and delete images. I've set the connection pool to 4 for testing purposes, but I've noticed that the number of connections can go up to 10 even if I haven't hit any…
1
vote
0 answers

Npgsql connection not releasing

I have a client app using Entity Framework Core 5 with Npgsql to access PostgreSQL. The client app may make multiple connections to the database. The problem is, after we killed the client app and shutdown the client machine, we can still see the…
1
vote
0 answers

Tcp connection leak issue

Observed an issue in which system is throwing - "too many open files" after working fine for few hours. Observed that there are many tcp connection stuck in "CLOSE_WAIT" state. sudo lsof | grep ":http (CLOSE_WAIT)" | wc -l -> 16215. Number is…
vaibhav.g
  • 729
  • 1
  • 9
  • 28
1
vote
1 answer

jdbc connections in clojure are garbage collected prematurely

I am using the [com.impossibl.pgjdbc-ng/pgjdbc-ng "0.7.1"] library to connect to a postgres database. The connection is saved inside an atom. I then arm multiple listeners like so: (doto (.createStatement (connection f)) (.execute (format…
WeGi
  • 1,908
  • 1
  • 21
  • 33
1
vote
1 answer

jdbcTemplate connection leak to postgresql db in Spring Boot

It seems that my service has a database connection leak. Yesterday after redeployment I mentioned that there were 27 opened connections to postgres database. This morning they are 60. Executing this query to my database I see that the last usage…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
1
vote
0 answers

okhttp client throwing connection leak warning

I see that the connection leak warning is thrown when response.body() isn't closed. Below is the code snippet that is throwing the warning. Request request = (new okhttp3.Request.Builder()).get().url(httpUrlBuilder.build()).addHeader("Origin",…
hemanik
  • 965
  • 3
  • 14
  • 33
1
vote
1 answer

Batch/CMD stops after OpenVPN command line

I'm trying to create an auto connect and disconnect file with the OpenVPN and in addition to that, set my WiFi adapters DNS to 0.0.0.0 (becuase of DNS leaks) and back to normal. Here's my current code: @echo off SETLOCAL EnableExtensions set…
Advena
  • 1,664
  • 2
  • 24
  • 45
1
vote
1 answer

Can i say this is a connection leak?

Web Server Environment : Windows 2008 R2 Database Server Environment : SQL Server 2008 Background : I want to use sql profiler to trace which connection cause connection leak. SQL server Profiler events I used: Audit Login (columns : EventSubClass,…
user337390
  • 131
  • 2
  • 2
  • 4
1
vote
1 answer

Connections do not return to the pool (JBoss EAP 6 AND SQL Server 2012)

I have an application running under jboss eap 6.3 and connecting to a SQL SERVER 2012 datasource through jTDS driver. The problem is the connections are opened and never return to the pool. at first, there are no CONNECTION LEAK. I have already…
1
vote
0 answers

Connection leakage issue when static method called from spring transactional method

I have a transactional method at Service layer which call a static method where i am starting a thread for some async task(again some database operation). Does calling a static method from transactional scope can make some db connection leakage…
1
vote
1 answer

Connection Leak Issue with SSIS 2014 & Postgres ODBC

I'm working on a project for a client that involves a pretty huge ETL process to move data from MSSQL Server to Postgres. We are using SSIS 2014 with the ODBC drivers provided on postgresql.org, and have setup an ODBC DSN. We are only using built…
1
vote
0 answers

Activity has leaked ServiceConnection eroror in Android

My application is developed through Phone-Gap. But when we turn-on TALK_BACK option from accessibility then I am getting the error message like below and the application is crashing for some time (but not always). How can I resolve it? …