Ronak S ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ea56c8... ) *commented* on HSEARCH-3900 ( https://hibernate.atlassian.net/browse/HSEARCH-3900?atlOrigin=eyJpIjoiZTI... )
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=eyJpIjoiZTI... )
@yoann Rodiere , Please find below the Thread name and dump trace for the same:
* Below is just one of the few, I had more than 5 threads like this. Which kept on running.
>
>
>
> "Hibernate Search: Elasticsearch transport thread-5" prio=5 tid=72
> RUNNABLE
> at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
> at
> sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:296)
>
> at
> sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:278)
>
> Local Variable: sun.nio.ch.WindowsSelectorImpl$SubSelector#3
> at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:159)
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
> Local Variable: java.util.Collections$UnmodifiableSet#848
> Local Variable: sun.nio.ch.Util$3#3
> at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
> Local Variable: sun.nio.ch.WindowsSelectorImpl#3
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:255)
>
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
>
> Local Variable: org.apache.http.impl.nio.reactor.BaseIOReactor#1
> at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
>
> Local Variable:
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker#1
> at java.lang.Thread.run(Thread.java:748)
>
>
2. Below is one of the thread that is running on one of the Indexes TABLEWC30, like this I have threads for each index and I have around 12 indexes in the Elastic side.
>
>
>
> "Hibernate Search sync consumer thread for index TABLEWC30" daemon prio=5
> tid=66 TIMED_WAITING
> at sun.misc.Unsafe.park(Native Method)
> at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:338)
> at
> org.hibernate.search.backend.impl.lucene.SyncWorkProcessor.parkCurrentThread(SyncWorkProcessor.java:179)
>
> at
> org.hibernate.search.backend.impl.lucene.SyncWorkProcessor.access$300(SyncWorkProcessor.java:37)
>
> Local Variable:
> org.hibernate.search.backend.impl.lucene.SyncWorkProcessor#1
> at
> org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:149)
>
> Local Variable:
> org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer#1
> at java.lang.Thread.run(Thread.java:748)
>
>
Please revert in-case you need more info or this one is not sufficient.
( 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=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:c966059 )