You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by kevinma <ke...@pinterest.com> on 2014/03/10 05:13:22 UTC
Does Solr/Lucene collapse Exception of multiple threads?
I have observed slowness of my Solr instance co-occurred with thread stack
overflow error, both happened at about the same time:
2014-03-09 03:14:43,166 ERROR
SolrDispatchFilter|null:java.lang.RuntimeException:
java.lang.StackOverflowError
at
org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:670)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:380)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
...
Caused by: java.lang.StackOverflowError
at
org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:81)
at
org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:83)
at
org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:83)
...
However I only see this exception error logged once. My question is: does
Solr/Lucene collapse exceptions of multiple threads and only log it at once?
I suspected stack overflow exhausted JVM memory. If this error is only one
thread, it cannot justify the memory issue because the stackoverflow was
only for 1 thread and it at most exhausted 1M (by default) stack memory of
JVM.
--
View this message in context: http://lucene.472066.n3.nabble.com/Does-Solr-Lucene-collapse-Exception-of-multiple-threads-tp4122471.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Does Solr/Lucene collapse Exception of multiple threads?
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Hello Kevin,
Solr doesn't collapse exceptions across threads, you can test it easily.
StackOverflowError crushes the originating thread only.
10.03.2014 8:32 пользователь "kevinma" <ke...@pinterest.com> написал:
> I have observed slowness of my Solr instance co-occurred with thread stack
> overflow error, both happened at about the same time:
>
> 2014-03-09 03:14:43,166 ERROR
> SolrDispatchFilter|null:java.lang.RuntimeException:
> java.lang.StackOverflowError
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:670)
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:380)
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
> at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> ...
> Caused by: java.lang.StackOverflowError
> at
>
> org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:81)
> at
>
> org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:83)
> at
>
> org.apache.lucene.util.automaton.SpecialOperations.isFinite(SpecialOperations.java:83)
> ...
>
> However I only see this exception error logged once. My question is: does
> Solr/Lucene collapse exceptions of multiple threads and only log it at
> once?
> I suspected stack overflow exhausted JVM memory. If this error is only one
> thread, it cannot justify the memory issue because the stackoverflow was
> only for 1 thread and it at most exhausted 1M (by default) stack memory of
> JVM.
>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Does-Solr-Lucene-collapse-Exception-of-multiple-threads-tp4122471.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>