AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

OutOfMemory issue when query matching multiple indices #128

Closed spaduret closed 1 year ago

spaduret commented 1 year ago

Describe the bug When i build a simple query but GET request matching multiple indices (a thousand in my case) the DataGrip application is running out of memory.

image

Query example:

GET /*customers_*/_search
{
  "size": 10,
  "query": {
    "exists": {
      "field": "scoring.totalScore"
    }
  }
}

My best guess is that plugin is trying to grab mapping from all matched indices. In my case all indices have same mapping.

Environment information:

AntonShuvaev commented 1 year ago

Thanks for reporting the issue. I will investigate it.

AntonShuvaev commented 1 year ago

I improved memory consumption in version 2023.2.8. Let me know if the issue still exists.

spaduret commented 1 year ago

The issue is still there. Whenever i use index pattern GET /index*/_search the Rider is freezing and i see a lot of tasks queued: image

AntonShuvaev commented 1 year ago

In version 2023.2.9, I've fixed an issue with retrieving index mappings multiple times. This should help with freezing problem.