Hi,
I have every day timeout on plugin elasticsearch of 3000ms.
In the log I see
[2016-07-01 09:43:16,311][WARN ][indices.ttl ] [Franklin Hall] failed to execute ttl purge
java.lang.OutOfMemoryError: Java heap space
[2016-07-01 09:43:16,311][WARN ][threadpool ] [Franklin Hall] failed to run org.elasticsearch.index.shard.IndexShard$EngineRefresher@672074
java.lang.OutOfMemoryError: Java heap space
[2016-07-01 09:43:42,982][WARN ][netty.channel.socket.nio.AbstractNioSelector] Failed to accept a connection.
java.lang.OutOfMemoryError: Java heap space
So I want to increase heap size (https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html)
I put this command in /etc/init.d/elasticsearch
export ES_HEAP_SIZE=3g
My server have 8Gb of ram.
If I put more than 3Gb, I have this error:
[root@x elasticsearch]# /etc/init.d/elasticsearch restart
Stopping elasticsearch: [ OK ]
Starting elasticsearch: Invalid initial heap size: -Xms4g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit. [FAILED]
In kibana configuraiton, I have
elasticsearch.pingTimeout: 5000
elasticsearch.requestTimeout: 50000
Can you help me ?
Thanks