I am getting heap space error.
Basically I am starting a embedded ES node with data set to true option.
The elasticsearch.yml is not in the classpath which means it will go for
defaults. I created 1 index seeded 3 docs and the size of each doc is not
more than 1000 bytes. And when I ran this query
query: {
"size" : 2147483646,
"query" : {
"bool" : {
"should" : {
"term" : {
"account-name" : "customer1"
}
},
"minimum_should_match" : "1"
}
},
"filter" : {
"range" : {
"timestamp" : {
"from" : 1371577346230,
"to" : 1371577406229,
"include_lower" : true,
"include_upper" : true
}
}
}
}
And then i get this:
Exception in thread "elasticsearch[Hulk][search][T#1]"
java.lang.OutOfMemoryError: Java heap space
at
org.elasticsearch.search.SearchService.shortcutDocIdsToLoad(SearchService.java:588)
at
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:325)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:243)
at
org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:75)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Why such a small data I am getting Java heap error.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.