You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Memory usage exceed limit and java.lang.IllegalStateException: resource is not enough to run the query, quit. #611
Describe the bug
Memory used up after many sql requests was executed.
To Reproduce
Steps to reproduce the behavior:
start a new container from the opensearch docker image v1.2.3;
use JMeter to perform a lot of sql requests;
See error in the container console log: "Memory usage:7301801288 exceed limit:7301444403" and "java.lang.IllegalStateException: resource is not enough to run the query, quit."
Additional context
MAT analyses the memory dump and shows the leak suspect:
The class org.springframework.beans.factory.support.DefaultListableBeanFactory, loaded by java.net.FactoryURLClassLoader @ 0x605cb7520, occupies 5,631,327,632 (91.39%) bytes. The memory is accumulated in one instance of java.util.concurrent.ConcurrentHashMap$Node[], loaded by , which occupies 5,631,322,800 (91.39%) bytes.
And we find that sql legacy plugin creates an AnnotationConfigApplicationContext instance for every sql request in the class file RestSQLQueryAction:
@microtimber Thanks for reporting the issue! Will investigate.
The error message you saw comes from our own circuit breaker as intended. But we may need to double check if any memory leak.
Activity
dai-chen commentedon Aug 9, 2022
@microtimber Thanks for reporting the issue! Will investigate.
The error message you saw comes from our own circuit breaker as intended. But we may need to double check if any memory leak.
dai-chen commentedon Dec 12, 2022
This is already fixed in #822. Thanks!