Hi guys,
I'm trying to replace Lucene and Tika in the existing application. I
started from the service that should index the document user uploaded and
I'm using elasticsearch-mapper-attachments for that. However, I'm stuck on
the some exception that I can't find the cause
Exception in thread "elasticsearch[Prosolo Node][generic][T#3]"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "elasticsearch[Prosolo
Node][generic][T#3]"
My elasticsearch server is on the localhost. I tried to increase
indices.memory.index_buffer_size, but it didn't work.
This is the code that I'm using to index the file:
public void indexFile(String absolutePath, long id) throws IOException{
String idxName = "documents";
String idxType = "attachment";
String encodedFile=Base64.encodeFromFile(absolutePath);
// Client
client=ElasticSearchFactory.prepareCreateIndexResponseForAttachment(idxName);
Client client=ElasticSearchFactory.getClient();
XContentBuilder source = jsonBuilder().startObject()
.field("doc", encodedFile).endObject();
IndexResponse idxResp = client.prepareIndex().setIndex(idxName
).setType(idxType).setId(String.valueOf(id))
.setSource(source).setRefresh(true).execute().actionGet();
client.close();
}
and this is the log I got, but I can't figure out anything from this log:
2013-06-17 23:02:43,209 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node]processing
[zen-disco-receive(from master [[Growing Man][8c9IXH8_Qcy80LgSexjB-Q][inet[/192.168.1.65:9300]]])]:
execute
2013-06-17 23:02:43,210 DEBUG
org.elasticsearch.common.logging.log4j.Log4jESLogger.internalDebug(Log4jESLogger.java:94)
- [Prosolo Node] cluster state updated, version [17], source
[zen-disco-receive(from master [[Growing
Man][8c9IXH8_Qcy80LgSexjB-Q][inet[/192.168.1.65:9300]]])]
2013-06-17 23:02:43,211 DEBUG
org.elasticsearch.common.logging.log4j.Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [documents] creating index
2013-06-17 23:02:43,212 DEBUG
org.elasticsearch.common.logging.log4j.Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] creating Index [documents], shards [5]/[1]
2013-06-17 23:02:43,356 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents] using dynamic[true], default mapping: default_mapping_location[
null], loaded_from[jar:file:/home/zoran/.m2/repository/org/elasticsearch/
elasticsearch/0.90.1/elasticsearch-0.90.1.jar!/org/elasticsearch/index/
mapper/default-mapping.json] and source[{
"default":{
}
}]
2013-06-17 23:02:43,357 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents] using [resident] query cache with max_size [100], expire [null]
2013-06-17 23:02:43,363 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents] using index.store.throttle.type [node], with index.store.throttle
.max_bytes_per_sec [0b]
2013-06-17 23:02:43,398 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents] adding mapping [attachment], source [{"attachment":{"properties"
:{"doc":{"type":"string"}}}}]
2013-06-17 23:02:43,434 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] creating shard
2013-06-17 23:02:43,435 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents] creating shard_id [1]
2013-06-17 23:02:43,501 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] Using [keep_only_last] deletion policy
2013-06-17 23:02:43,503 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] using [tiered] merge policy with expunge_deletes_allowed[10.0
], floor_segment[2mb], max_merge_at_once[10], max_merge_at_once_explicit[30
], max_merged_segment[5gb], segments_per_tier[10.0], reclaim_deletes_weight[
2.0], async_merge[true]
2013-06-17 23:02:43,503 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] using [concurrent] merge scheduler with max_thread_count[3]
2013-06-17 23:02:43,506 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] state: [CREATED]
2013-06-17 23:02:43,507 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] interval [5s], flush_threshold_ops [5000],flush_threshold_size
[200mb], flush_threshold_period [30m]
2013-06-17 23:02:43,511 DEBUG org.elasticsearch.common.logging.log4j.
Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [
documents][1] state: [CREATED]->[RECOVERING], reason [from [Growing Man][
8c9IXH8_Qcy80LgSexjB-Q][inet[/192.168.1.65:9300]]]
2013-06-17 23:02:43,512 DEBUG
org.elasticsearch.common.logging.log4j.Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] processing [zen-disco-receive(from master [[Growing
Man][8c9IXH8_Qcy80LgSexjB-Q][inet[/192.168.1.65:9300]]])]: done applying
updated cluster_state
2013-06-17 23:02:43,706 DEBUG
org.elasticsearch.common.logging.log4j.Log4jESLogger.internalDebug(Log4jESLogger.java:94) - [Prosolo Node] [documents][1] starting engine
Exception in thread "elasticsearch[Prosolo Node][generic][T#3]"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "elasticsearch[Prosolo
Node][generic][T#3]"
2013-06-17 23:02:59.133:WARN::Error for /prosolo/index.xhtml
java.lang.OutOfMemoryError: PermGen space
Exception in thread "elasticsearch[Prosolo Node][generic][T#2]"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "elasticsearch[Prosolo
Node][generic][T#2]"
2013-06-17 23:03:04.041:WARN::/prosolo/index.xhtml: java.lang.
OutOfMemoryError: PermGen space
Could you please give me some advice what could be the problem here?
Thanks,
Zoran
--
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.