Comments (5)
@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.
from jedis.
@ashok-mariyala The code looks awfully similar to the code in #3838 and #3844. Is the exception mentioned there resolved?
from jedis.
@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.
from jedis.
You are using new JedisPooled("redis", 6379, timeout, "default", "Ashok@Redis")
constructor which uses the default pool config of size 8. As you are performing huge write and read operations, you should allow a larger pool size. You can do that by GenericObjectPoolConfig<Connection>
(or simply ConnectionPoolConfig
). You can learn more about pool configuration by studying apache commons pool version 2. Here is a short guide on Configuring Connection pool.
from jedis.
@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.
Thanks in advance.
from jedis.
Related Issues (20)
- Could not get a resource from the pool HOT 7
- Jedis4 cannot close SentinelListener connection completely in a JedisSentineled mode when executing method close ,caused connection leak
- redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool at redis.clients.jedis.util.Pool.getResource(Pool.java:42) ~[jedis-5.1.2.jar:?] at redis.clients.jedis.JedisPool.getResource(JedisPool.java:378) ~[jedis-5.1.2.jar:?] HOT 2
- redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream. HOT 4
- Resource leak: JedisPooled does not return connection to the pool on socket exception HOT 1
- Jedis connect failed when using dns resolver in jedis 5.1.2 HOT 5
- Pipeline is invalid HOT 2
- Performance issue version 5.1.3
- Empty lua table returns EmptyMap since 5.0.1
- redis.clients.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name. HOT 1
- Failed to connect to any host resolved for DNS name. HOT 1
- Java 21 and Virtual Threads: Timeout waiting for idle object HOT 2
- Refresh connections when getting JedisMovedDataException during using pipeline HOT 1
- Does jedis support valkey connections ? HOT 1
- Virtual threads permanently blocking on JedisPool#getResource
- BZPOPMIN & BZPOPMAX throws NPE when sorted set is empty
- readOnlyForReplica flag question HOT 7
- 5.2.0 release plan HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedis.