Skip to content
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

After a machine in the Redis cluster crashes, a large number of RedisClusterNode instances will be created in the service, but they cannot be recycled, resulting in the service being continuously full GC #2802

Open
yuanyunlu opened this issue Mar 26, 2024 · 1 comment
Labels
status: waiting-for-feedback We need additional information before we can continue

Comments

@yuanyunlu
Copy link

Current Behavior

hi @mp911de ,
In the production environment, a Redis machine crashed and the service successfully enabled the topology refresh function. One day later, our machine had not yet recovered, but the service experienced high CPU. After analyzing the heap dump files, it was found that a large number of RedisClusterNode objects were created, and the JVM was unable to recycle them, resulting in a continuous full GC. I would like to know why. thanks

Environment

  • Spring-boot: [2.3.2.RELEASE]
  • Lettuce version(s): [5.3.2.RELEASE]
  • Redis version: [6.2.6]

Additional context

This is the image analyzed by jprofiler

jprofiler

@mp911de
Copy link
Collaborator

mp911de commented Apr 2, 2024

If you have a heap dump handy, please investigate the GC roots of the held object. It can well be that some of these objects are held by retry instances or other ones that are attached to objects that aren't cleared.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-feedback We need additional information before we can continue
Projects
None yet
Development

No branches or pull requests

2 participants