my server, r3.2xlarge 8core 60G, is on the AWS. and I use obviously Elasticsearch 1.4 on JVM 1.8 with CMS GC for FGC and ParallelNewGC for YGC.
I run ES with these opts,
./bin/elasticsearch -Xms30g -Xmx30g -XX:NewRatio=2 -XX:ReservedCodeCacheSize=2g -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
just after run the ES, HQ said everything's fine and no slow query logs appear for a while.
but when about 8 hours past 'Codecache is Full' warning appears and ES search query is getting slow down horribly.
(approximately 200ms to 2s)
I just want to know why my codecache is full so often? and what should I do to avoid fulfilling codecache?