Questions tagged [connection-leaks]
73 questions
3
votes
2 answers
Find Connection leak in Java application
I have an application which starts giving me internal server error after some time, Some people I asked told me that this can be because of Connection leak in my application. I started searching and found this query to simulate connection…

aatif
- 147
- 1
- 1
- 8
3
votes
1 answer
How to identify the owner of a monitor lock in Java
Our Java Application running with WildFly 8.2.1 and Java 1.8_92 hangs completely on huge load. A threaddump at this situation shows that a lot of threads are in state WAITING at monitor 0x00000005cc562228:
"default task-100" #825 prio=5 os_prio=0…

user6345319
- 31
- 2
3
votes
1 answer
log4jdbc not writing to log files
I am trying to debug connection leak in my Struts application and have set-up log4jdbc. I am able to see log4jdbc logs in console but I wish to have jdbc connection open/close events being written to a log file.
Below is my log4j.properties file
…

Ravi Gupta
- 4,468
- 12
- 54
- 85
3
votes
1 answer
Network error using eclipselink with internal connection pool
We've implemented a JavaSE application using eclipselink with its internal connection pool feature. We've configured the default pool to use a minimum of 1 and a maximum of 10 connections.
After installing this application on a windows terminal…

mrkstr
- 86
- 5
3
votes
2 answers
MQ right way to close connection
I saw lots of examples like
http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/, even on IBM publib. As I guess this code had a flaw: Queue connection closed in main block, and not in finally as I…

coms
- 469
- 15
- 38
3
votes
4 answers
Eclipse possible connection leaks
I have actived in Eclipse that it shows possible database connection leaks.
I have this piece of code:
public static Administrator getAdministrator(String gebruikersnaam, String wachtwoord) throws CustomException {
Connection connectie =…

Joël Craenhals
- 475
- 7
- 19
2
votes
0 answers
Spring Cloud Gateway memory leak with non-standart response content-type
We are facing strange memory leak in Spring Cloud Gateway that only appears in one route, that points to a regular Spring Web Rest service that returns response with non standart content-type: "application/jwt" and JWT-token as response body as…

Andrey Cage
- 21
- 2
2
votes
1 answer
Spring HikariCP's connection is not closing immediately
I'm using HikariCP.
If I call the use method in MaeilDBService class 3 times(MaximumPoolSize), next time It occurs timed out. MaeilHikariCP - Connection is not available, request timed out after 30001ms. (more detail error information is at the…

hynuah_iia
- 429
- 7
- 14
2
votes
1 answer
How to completely release connection when using HttpClient?
I use HttpClient (https://hc.apache.org/httpcomponents-client-4.5.x/index.html) to make many http calls back to back and in parallel. After running for a while, it gets this exception:
java.net.BindException: Address already in use: connect
I tried…

David
- 141
- 1
- 7
2
votes
1 answer
Injected JOOQ Context leaks connections
I use jooq to handle SQL Queries on a PostgreSQL database in an Wildfly web application. The DSLContext is injected via CDI into my beans following the example on http://awolski.com/integrating-jooq-easy/. A bean looks like this:
public class Foo {
…
user7046630
2
votes
1 answer
Oracle UCP Pool leaking cursor?
Our application has been using OracleDataSource successfully for several years and we are now evaluating switching to the new Oracle Universal Connection Pool (UCP).
With the new UCP Pool, our application runs into ORA-0100: Maximum open cursors…

ewernli
- 38,045
- 5
- 92
- 123
2
votes
1 answer
Node.js+Socket.io, established connections are increasing
My node.js+socket.io server has deploying via aws ec2 instances.
and there are some network tuning configs.
echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time
echo 10 >…

user3438823
- 61
- 1
- 7
2
votes
0 answers
Database connection leak, hibernate 4.3 + spring webflow 2.3.1
I'm currently facing the following known issue : https://jira.spring.io/browse/SWF-1525
I using Oracle9 and Ikaricp as connection pool. (At first i thought it was an issue with apache dbcp, this is why i switched to ikaricp)
I'm not using JPA but i…

Quent
- 23
- 5
2
votes
1 answer
Mongo Connection Count creeping up one per 10 second with mgo driver
We monitor our mongoDB connection count using this:
http://godoc.org/labix.org/v2/mgo#GetStats
However, we have been facing a strange connection leak issue where the connectionCount creeps up consistently by 1 more open connection per 10 seconds.…

samol
- 18,950
- 32
- 88
- 127
2
votes
1 answer
PoolingClientConnectionManager PoolStats and potential connection leak concern
I'm using PoolingClientConnectionManager and I am suspecting that I'm leaking connections. I have a monitoring thread that prints out the PoolStats as below:
[leased: 126; pending: 0; available: 14; max: 140]
..
[leased: 140; pending: 20; available:…

teonadi
- 21
- 1
- 3