Chce types

Hi,

I am not sure and can find it nowhere. Is there any description of cache
types ? I mean what do 'resident', 'soft', 'weak' mean and how do they work?

Best regards.
Marcin Dojwa

--

Hi Marcin,

Here's a really good article about ES caching:

On Wed, Dec 12, 2012 at 12:01 PM, Marcin Dojwa m.dojwa@livechatinc.comwrote:

Hi,

I am not sure and can find it nowhere. Is there any description of cache
types ? I mean what do 'resident', 'soft', 'weak' mean and how do they work?

Best regards.
Marcin Dojwa

--

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

Hmmm, didn't you miss the link ? :slight_smile:

2012/12/12 Radu Gheorghe radu.gheorghe@sematext.com

Hi Marcin,

Here's a really good article about ES caching:

On Wed, Dec 12, 2012 at 12:01 PM, Marcin Dojwa m.dojwa@livechatinc.comwrote:

Hi,

I am not sure and can find it nowhere. Is there any description of cache
types ? I mean what do 'resident', 'soft', 'weak' mean and how do they work?

Best regards.
Marcin Dojwa

--

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

--

Sorry, I accidentally hit send :frowning:

So, the article:

It tells quite a lot of how caching works in ES. For example, about soft
caches:
"Elasticsearch uses Google Guava libraries to implement its cache. The *soft

  • type wraps cache values in soft references, which means that whenever
    memory is needed garbage collector will clear those references even when
    they are used. This means that when you start hitting heap memory limit,
    the JVM wont throw OutOfMemory exception, but will instead release those
    soft references with the use of garbage collector. More about soft
    references can be found at:

SoftReference (Java Platform SE 6)"
Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

On Wed, Dec 12, 2012 at 12:09 PM, Radu Gheorghe
radu.gheorghe@sematext.comwrote:

Hi Marcin,

Here's a really good article about ES caching:

On Wed, Dec 12, 2012 at 12:01 PM, Marcin Dojwa m.dojwa@livechatinc.comwrote:

Hi,

I am not sure and can find it nowhere. Is there any description of cache
types ? I mean what do 'resident', 'soft', 'weak' mean and how do they work?

Best regards.
Marcin Dojwa

--

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

Thank you. That is what I was looking for :slight_smile:

2012/12/12 Radu Gheorghe radu.gheorghe@sematext.com

Sorry, I accidentally hit send :frowning:

So, the article:
ElasticSearch Cache Usage - Sematext

It tells quite a lot of how caching works in ES. For example, about soft
caches:
"Elasticsearch uses Google Guava libraries to implement its cache. The *
soft* type wraps cache values in soft references, which means that
whenever memory is needed garbage collector will clear those references
even when they are used. This means that when you start hitting heap memory
limit, the JVM wont throw OutOfMemory exception, but will instead release
those soft references with the use of garbage collector. More about soft
references can be found at:

SoftReference (Java Platform SE 6)"
Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

On Wed, Dec 12, 2012 at 12:09 PM, Radu Gheorghe <
radu.gheorghe@sematext.com> wrote:

Hi Marcin,

Here's a really good article about ES caching:

On Wed, Dec 12, 2012 at 12:01 PM, Marcin Dojwa m.dojwa@livechatinc.comwrote:

Hi,

I am not sure and can find it nowhere. Is there any description of cache
types ? I mean what do 'resident', 'soft', 'weak' mean and how do they work?

Best regards.
Marcin Dojwa

--

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

--