question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection leaking in 2.9.1 GenericObjectPool

See original GitHub issue

Follow up of https://github.com/xetorthio/jedis/issues/1929 since the author closed the issue. I would really appreciate a backport like mentioned in the linked issue. Also, fyi, jedis 2.9.1 is the “official” version provided by Spring Boot 1.5.19.RELEASE as the dependencyManagement so this probably affects a lot of users. The 1.5.x branch is not in active development anymore but they are still supporting it through end of summer 2019 IIRC.

Expected behavior

No connection leak

Actual behavior

There’s a connection leak with heavy usage

Steps to reproduce:

With a heavy usage of jedis 2.9.1, the connections are slowly getting leaked and the pool starts rejecting connections after a while.

Redis / Jedis Configuration

Nothing special

Jedis version:

2.9.1

Redis version:

N/A

Java version:

java 8

Thanks!!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
eiselemscommented, Mar 23, 2019

Also, I’m thinking about all the users that will get jedis 2.9.1 with Spring boot that will spend a lot of time debugging this like I did, or even worse get problems in production

@jebeaudet I give you a “+1” for this 👍 Exactly what happened to us. But nice writeup here and in the other issues.

1reaction
snicollcommented, Feb 18, 2019

@gkorland I understand that this issue was backported but I don’t see any 2.9.2 release on Maven central. @jebeaudet (thank you!) gave you enough information about our upgrade policy and I’ve declined your request to update as we would do it automatically.

We did, but no candidate release was available so we just released Spring Boot 2.1.3.RELEASE with this bug still present. Can you please let us know if a 2.9.2 release is scheduled? Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection leaking in 2.9.1 GenericObjectPool - redis/jedis
With a heavy usage of jedis 2.9.1, the connections are slowly getting leaked and the pool starts rejecting connections after a while. Redis...
Read more >
GenericObjectPool (Apache Commons Pool 2.11.1 API)
A configurable ObjectPool implementation. When coupled with the appropriate PooledObjectFactory , GenericObjectPool provides robust pooling functionality ...
Read more >
Detecting and Resolving Database Connection Leaks with ...
Take a look at this tutorial that demonstrates how you can find and remove connection leaks between your application and database in Java ......
Read more >
Recently Active 'apache-commons-dbcp' Questions - Page 6 - Stack ...
iam using sakai 2.9.1 after a few operations the server stops responding and ... the idle connections are not being re-used or I...
Read more >
Spring Boot: Detecting Connection Leak - YouTube
In this video we will see how to detect connection leak in a Spring Boot application using HikariCP, the default database connection pool ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found