Open ThaDafinser opened 7 years ago
Thanks for the report.
It's not a leak but the FSA is quite memory hungry when an index is created, the way it is implemented. Will be investigated to reduce memory size.
I just tried now building a lot of indices with the settings below.
Even without using the filter explicit, the memory seems to be required. (got the same exception)
//update i'm going to recreate now all indices without the baseform filter defined and watch if then the plugin doesn't crash ES.
Without using the baseform (removed also the defined filter), it still seems to be a memory problem.
@jprante i only created in toal 24MB of indices/documents, but JVM is full and Kibana goes again to timeouts.
After disabling the whole plugin, the JVM memory usage is stable.
Quick idea: load FSA with ES startup? (only once)
@jprante i'm sadly no java geek, but i found at the ES repo this approach for Hunspell
. They use a service, so the dictionary is only loaded once.
Maybe this would ge a good idea?
https://github.com/elastic/elasticsearch/blob/ee802ad63c0f21d697a5095dd05dc6f94626ee4d/core/src/main/java/org/elasticsearch/index/analysis/HunspellTokenFilterFactory.java#L44 https://github.com/elastic/elasticsearch/blob/ee802ad63c0f21d697a5095dd05dc6f94626ee4d/core/src/main/java/org/elasticsearch/indices/analysis/HunspellService.java
When i use the baseform plugin for some (> 1.000.000) documents, i'm getting this error