# How can I trigger the garbage collection?

**URL:** <https://discuss.elastic.co/t/how-can-i-trigger-the-garbage-collection/19900>\
**Category:** Elasticsearch\
**Created:** [September 21, 2014, 6:58pm UTC](https://discuss.elastic.co/t/how-can-i-trigger-the-garbage-collection/19900 "2014-09-21T18:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Garcia\_Acosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_garcia_acosta/32/1266_2.png) [@Luis\_Garcia\_Acosta](https://discuss.elastic.co/u/Luis_Garcia_Acosta)\
**Post date:** [September 21, 2014, 6:58pm UTC](https://discuss.elastic.co/t/how-can-i-trigger-the-garbage-collection/19900/1 "2014-09-21T18:58:51Z")

</div>

Here is the thing, the gc should trigger when it reaches 75% of the heap,  
then elasticsearch frees the old generation. Every now and then, a node in  
our cluster miss this step, and stop calling the garbage collection, even  
when this threshold is met. When this happens, it is a matter of time that  
the node crashes. We can monitor the jvm, and restart tje npde, since we  
prefer a 'controlled' restart than nasty calls in the middle of the night.

Quetion: can I force the jvm to do a gc round?

Thanks

es: 1.3.2  
jvm: oracle 1.7

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3312c3f6-e321-4ae2-9a87-3afe1ebf6e9a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3312c3f6-e321-4ae2-9a87-3afe1ebf6e9a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:00am UTC](https://discuss.elastic.co/t/how-can-i-trigger-the-garbage-collection/19900/2 "2017-07-06T01:00:51Z")

</div>


