ClassLoading in Elasticsearch

I am using elasticsearch 1.5.1 and Java 7 with Spring Web application environment. In PROD, we got Out of Memory: Perm Gen error in Elasticsearch instance log file.

So based out of this, I understand class loading happens on Elasticsearch instance. I need to know how to control or fix class loading and unloading issue in Elasticsearch instance?

Our web application closes all clients properly through shutdown hook. But still tomcat provides an alert stating few of the un closed threads and Thread local reference. Through this I am just curios to know if this has anything with Elastic search Class loading capability.

Note: I performed various tests via Tomcat application, and found that Client close() parameter do not have any impact on Out of Memory : perm gen in Elasticsearch Cluster.

Please help.

I ran in the same issue years ago.
IIRC it was due to a Guava issue.

I ended up shutting down the whole tomcat instance instead of only uninstalling the web application.

Use Java 8 to get rid of Permgen once and forever.

Note, Java 7 is no longer supported by Oracle.
Am 13.01.2016 07:54 schrieb "Arivazhagan Jeganathan" <
noreply@discuss.elastic.co>: