Ronak S (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ea56c8...
) *commented* on HSEARCH-3900 (
https://hibernate.atlassian.net/browse/HSEARCH-3900?atlOrigin=eyJpIjoiMWE...
)
Re: drop-and-create strategy is not working at app. startup when
"hibernate.search.autoregister_listeners" is set to false. And if true, startup
index creation thread are not released, sending the app in out of memory. (
https://hibernate.atlassian.net/browse/HSEARCH-3900?atlOrigin=eyJpIjoiMWE...
)
Below is the property from our hibernate config.
<property
name="hibernate.search.default.indexmanager">elasticsearch</property>
We have this set correctly.
These are the threads that perform indexing.
But on startup we are not indexing anything.
The threads will not stop as long as your application is running. That's
on purpose.
Why is so?
The threads run intermittently when you index something. That's on
purpose.
We are not indexing anything on startup. Then why are they even started. And why they keep
on running, when I’m not indexing anything.
Was your only problem that "Hibernate Search creates threads"?
No, issue is these threads are throwing my application in out of memory condition. Also If
I switch elastic search off in my app, then the application runs fine.
(
https://hibernate.atlassian.net/browse/HSEARCH-3900#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3900#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:29f7b81 )