Re: JVM Heap usage didn't decline after clearing field data cache
So, What is Clear Cache API for ? On Wed, Mar 19, 2014 at 9:22 PM, joergpra...@gmail.com joergpra...@gmail.com wrote: JVM heap objects are reclaimed by garbage collection, not by clear cache command. Jörg On Wed, Mar 19, 2014 at 4:17 AM, Gary Gao garygaow...@gmail.com wrote: Hi, I have a total 8GB of JVM Heap, it't usage was near 50%, While I cleared field data cache(almost 1GB) using Clear Cache API: $curl -XPOST 'http://localhost:9200/_cache/ clear?field_data=true' field data cahced size decreased, indeed, but JVM heap usage didn't declined. What's the reasons ? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups elasticsearch group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/PWbqlVw9OEE/unsubscribe. To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGnmE44ikZb03Km-nr9CKwL%2BMuOjQvQ1LD0XLf0ZxuAbA%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAKdsXoGnmE44ikZb03Km-nr9CKwL%2BMuOjQvQ1LD0XLf0ZxuAbA%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAgk9rx2t8pDJ86Nwd0t6zE_DLKhupB8TZcoRG7khufucWfGAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: JVM Heap usage didn't decline after clearing field data cache
For example, if you have a resident filter cache configured and there is heap congestion, clear cache may temporarily help to release objects back to the JVM. After a while they are GCed. Usually, in most other cases, cached objects are GCed when memory becomes low, so there is not much to worry about clearing cache by command. Jörg On Fri, Mar 21, 2014 at 8:19 AM, Gary Gao garygaow...@gmail.com wrote: So, What is Clear Cache API for ? On Wed, Mar 19, 2014 at 9:22 PM, joergpra...@gmail.com joergpra...@gmail.com wrote: JVM heap objects are reclaimed by garbage collection, not by clear cache command. Jörg On Wed, Mar 19, 2014 at 4:17 AM, Gary Gao garygaow...@gmail.com wrote: Hi, I have a total 8GB of JVM Heap, it't usage was near 50%, While I cleared field data cache(almost 1GB) using Clear Cache API: $curl -XPOST 'http://localhost:9200/_cache/ clear?field_data=true' field data cahced size decreased, indeed, but JVM heap usage didn't declined. What's the reasons ? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups elasticsearch group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/PWbqlVw9OEE/unsubscribe. To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGnmE44ikZb03Km-nr9CKwL%2BMuOjQvQ1LD0XLf0ZxuAbA%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAKdsXoGnmE44ikZb03Km-nr9CKwL%2BMuOjQvQ1LD0XLf0ZxuAbA%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAgk9rx2t8pDJ86Nwd0t6zE_DLKhupB8TZcoRG7khufucWfGAA%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAgk9rx2t8pDJ86Nwd0t6zE_DLKhupB8TZcoRG7khufucWfGAA%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEYBZQkEc%2BU6YUysHrB3c%2B4bDq-QCV4GO%3DbHCKncykx_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: JVM Heap usage didn't decline after clearing field data cache
JVM heap objects are reclaimed by garbage collection, not by clear cache command. Jörg On Wed, Mar 19, 2014 at 4:17 AM, Gary Gao garygaow...@gmail.com wrote: Hi, I have a total 8GB of JVM Heap, it't usage was near 50%, While I cleared field data cache(almost 1GB) using Clear Cache API: $curl -XPOST 'http://localhost:9200/_cache/ clear?field_data=true' field data cahced size decreased, indeed, but JVM heap usage didn't declined. What's the reasons ? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/5e4a1e94-d6f0-4069-9d62-481c5a974f2c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGnmE44ikZb03Km-nr9CKwL%2BMuOjQvQ1LD0XLf0ZxuAbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.