You are currently reviewing an older revision of this page.
When utilizing functionality that requires the search server, the following error message is printed in the application server log:
Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[90nFgyfMQPmYsbhzr2aI7w][xray-rule-execution][0]: ElasticsearchException[org.elasticsearch.ElasticsearchException: java.lang.OutOfMemoryError: Java heap space]; nested: UncheckedExecutionException[org.elasticsearch.ElasticsearchException: java.lang.OutOfMemoryError: Java heap space]; nested: ElasticsearchException[java.lang.OutOfMemoryError: Java heap space]; nested: ExecutionError[java.lang.OutOfMemoryError: Java heap space]; nested: OutOfMemoryError[Java heap space]; }
The error is seen when one of the search server functionalities requires more JVM heap than the configured maximum limit. By default, the search server will start with the configurations for initial and maximum memory usage (JVM heap) each set to 1024MB (1GB).
To correct this issue, perform the following:
<APPIAN_HOME>/admin/search-local
This article applies to all versions of Appian.
Last Reviewed: February 2017