Skip to content

Lettuce plugin causes CPU load to surge #12923

@oliver-zhang

Description

@oliver-zhang

Describe the bug

We have a Java application that uses the Lettuce component to operate Redis. When we use OpenTelemetry JavaAgent to collect traces, we find that the CPU usage increases significantly. When we remove the Lettuce plugin, it returns to normal.
The screenshot of using jstack to find the thread that consumes the most CPU is as follows
20241219102502

Steps to reproduce

  1. start app without javaagent -> cpu usage normal
  2. start app with javaagent -> cpu usage increases significantly
  3. start app with javaagent but exclude lettuce plugin -> cpu usage normal

Expected behavior

cpu usage normal

Actual behavior

CPU usage increases significantly

Javaagent or library instrumentation version

javaagent: 2.2.0 lettuce: 5.0.4 spring-data-redis: 2.1.5

Environment

JDK: 1.8
OS: centos

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds author feedbackWaiting for additional feedback from the authorstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions