-
Notifications
You must be signed in to change notification settings - Fork 871
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
Lettuce plugin causes CPU load to surge #12923
Comments
From your description, it can't be proved that the overhead is from Lettuce instrumentation of OTel Java Agent. The screenshot of jstack doesn't contain any OTel packages. You can compare the overheads by disabled and enabled Lettuce instrumentation. |
Thans for reply, I did come to this conclusion by disabling and enabling the lettuce plugin package. When we remove the Lettuce plugin, it returns to normal |
from the screenshot it looks like there's an does this |
Looking at the lettuce plugin code, I found that the lettuce CommandArgs.toCommandString method is called when taking statment. |
Yes |
@oliver-zhang would it be possible to provide a minimal sample application that reproduces the issue so we could debug what exactly causes it. |
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
Steps to reproduce
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
The text was updated successfully, but these errors were encountered: