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

LLRC direct memory consistent increase , finally program oom #91602

Open
seantech2000 opened this issue Nov 16, 2022 · 3 comments
Open

LLRC direct memory consistent increase , finally program oom #91602

seantech2000 opened this issue Nov 16, 2022 · 3 comments
Labels
>bug :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch Team:Clients Meta label for clients team

Comments

@seantech2000
Copy link

Elasticsearch Version

Version 6.8.23

Installed Plugins

No response

Java Version

1.8

OS Version

xx

Problem Description

we use LLRC 6.5.4 version to search ,bulk, index our business data; we find our service will oom after run half month;
our service is use jdk1.8 ,setting -xmx:4096M; use default cms Garbage collection;
from our npm monitor graph,find that, dirct memory is increase consistent;
image
i use gdb touch one node after oom, and dump memory sgement ,find all is Es responses:
image
image

the last behavior is I/O dispatch worker terminated abnormally ,caused by oom
image
and new request will take error:
image

how to fix this behavior?

Steps to Reproduce

our service will reporduce after restart

Logs (if relevant)

No response

@seantech2000 seantech2000 added >bug needs:triage Requires assignment of a team area label labels Nov 16, 2022
@pquentin pquentin added :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch and removed needs:triage Requires assignment of a team area label labels Nov 16, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Clients Meta label for clients team label Nov 16, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/clients-team (Team:Clients)

@pquentin
Copy link
Member

Hello! I'm afraid the data you provided is not enough to characterize the issue. I suspect we're going to need a heap dump to find out what the leak is, but I don't know enough about Java myself to tell.

@swallez
Copy link
Member

swallez commented Jan 18, 2023

The IOReactor can terminate when an OOM happens in the callback of an asynchronous request. So the memory leak most certainly happens in your application, and not in LLRC.

Inspecting a heap dump with a profiler will tell you what is using this memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch Team:Clients Meta label for clients team
Projects
None yet
Development

No branches or pull requests

4 participants