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
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.
Describe the bug
Memory used up after many sql requests was executed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Memory should be GCed.
Plugins
Host/Environment:
Additional context
MAT analyses the memory dump and shows the leak suspect:
And we find that sql legacy plugin creates an AnnotationConfigApplicationContext instance for every sql request in the class file RestSQLQueryAction:
The text was updated successfully, but these errors were encountered: