Graylog2 web interface timeouts

April 2, 2012
To make graylog2-web respond to HTTP queries you have to increase the initial 256MB heap size. In my case I set it to 4GB.

Edit /opt/elasticsearch-0.19.0/config/elasticsearch.yml and uncomment:

# ElasticSearch performs poorly when JVM starts swapping: you should ensure that
# it _never_ swaps.
# Set this property to true to lock the memory:
bootstrap.mlockall: true
Set necessary shell variable by editing /opt/elasticsearch-0.19.0/bin/elasticsearch:

Finally, edit /opt/elasticsearch-0.19.0/bin/service/elasticsearch.conf and modify these variables:

Now restart ES and enjoy it.

root     32286 32284  8 17:06 ?        00:01:31 java -Delasticsearch-service -Des-foreground=yes
-Des.path.home=/opt/elasticsearch-0.19.0 -Djline.enabled=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError -Xms4096m -Xmx4096m -