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.

org.redisson.client.RedisTimeoutException: Subscribe timeout: (7500ms)

See original GitHub issue

Expected behavior

java.util.concurrent.CompletionException: org.redisson.client.RedisTimeoutException: Subscribe timeout: (7500ms) at org.redisson.misc.RedissonPromise.await(RedissonPromise.java:197) ~[redisson-3.10.0.jar:?] at org.redisson.misc.RedissonPromise.await(RedissonPromise.java:206) ~[redisson-3.10.0.jar:?] at org.redisson.command.CommandAsyncService.syncSubscription(CommandAsyncService.java:159) ~[redisson-3.10.0.jar:?] at org.redisson.RedissonLock.lockInterruptibly(RedissonLock.java:149) ~[redisson-3.10.0.jar:?] at org.redisson.RedissonLock.lockInterruptibly(RedissonLock.java:136) ~[redisson-3.10.0.jar:?] at org.redisson.RedissonLock.lock(RedissonLock.java:118) ~[redisson-3.10.0.jar:?] Caused by: org.redisson.client.RedisTimeoutException: Subscribe timeout: (7500ms) at org.redisson.command.CommandAsyncService.syncSubscription(CommandAsyncService.java:160) ~[redisson-3.10.0.jar:?] ... 23 more

Redis version

3.0.7

Redisson version

3.10.0

Redisson configuration

Our redisson configuration: Sentinel cluster with 4 nodes masterConnectionPoolMinSize=16 masterConnectionPoolMaxSize=64 slaveConnectionPoolMinSize=16 slaveConnectionPoolMaxSize=64 timeout=3000 keepAlive=false idleConnectionTimeout=10000 connectTimeout=10000 pingConnectionInterval=0 pingTimeout=1000 with password auth

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NeoZephyrcommented, Dec 16, 2021

I would recommend first to try to increase subscriptionsPerConnection parameter.

BTW does it makes sense 250 is too low?

Depends on locks amount and threads amount use them.

Can these two parameters be set very large? How do they relate to the count of locks and threads, and what kind of relationship do they have? Let’s say I start 20 threads and each thread requests 5 read/write locks and lock

1reaction
archmishacommented, Jan 11, 2019

Thanks, Does it makes sense to double subscriptionsPerConnection from 5 to 10 in order to not increase amount of connections? BTW does it makes sense 250 is too low?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redisson client ; RedisTimeoutException issue - Stack Overflow
org.redisson.client.RedisTimeoutException: Unable to acquire connection! Increase connection pool size and/or retryInterval settings Node ...
Read more >
org.redisson.client.RedisTimeoutException java code examples
Best Java code snippets using org.redisson.client.RedisTimeoutException ... tryFailure(new RedisTimeoutException("Subscribe timeout: (" + timeout + "ms).
Read more >
Production Updates — 01/26/2022 - Medium
“org.redisson.client.RedisTimeoutException: Subscribe timeout: (7500ms). Increase 'subscriptionsPerConnection' and/or ...
Read more >
mrniko/redisson - Gitter
Caused by: org.redisson.client.RedisTimeoutException: Redis server response timeout during command batch execution. Channel: [id: 0xc69eb4c1, L:/10.XX.245.
Read more >
Redis Timeout Exception | DavidChen's blog
1 2 3 4, 使用Redisson取得RLock時,throw org.redisson.client.RedisTimeoutException。 詳細Error Message為 3003 - Subscribe timeout: (7500ms).
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