-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
JedisPooled ## Could not get a resource from the pool #3845
Comments
@ashok-mariyala The code looks awfully similar to the code in #3838 and #3844. Is the exception mentioned there resolved? |
@sazzad16 Thank you for the quick response. As you mentions, #3838 and #3844 these 2 tickets used JedisPool where as I am using JedisPooled class. BTW Those are not related to my application codebase. I have taken above tickets reference few days back may be due to that you observed similar code base. Kindly please help me, what might be issue in my code base. Thanks in advance. |
You are using |
@sazzad16 Sure I will try to increase the pool size. Could you please suggest me, what is suggestable connection pool recommendation (max total, min idle, max idle) for production grade for huge writes and reads. |
@ashok-mariyala Sorry, I can't. These depend on application, system, network, design, strategy, etc. You would have to tune accordingly. If you have a huge number of operations, the number of connections could be one thousand or even several thousands. |
Expected behavior
Java Jedis client work with thousands of reads and write on redis server.
Actual behavior
Jedis client gives
Could not get a resource from the pool
error while performing huge write and read operations on redis clientStack trace
Steps to reproduce:
Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
Java Code Snippets
Redis connection initialization
Inserting data to the redis server
Redis / Jedis Configuration
Jedis version:
4.4.3
Redis version:
redis:7.2.4-debian-11-r0
Java version:
11.0.20.1
The text was updated successfully, but these errors were encountered: