# High VIRT on ElasticSearch Java Process

**URL:** <https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853>\
**Category:** Elasticsearch\
**Created:** [February 17, 2014, 5:02pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853 "2014-02-17T17:02:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefano\_ruggiero](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stefano\_ruggiero](https://discuss.elastic.co/u/stefano_ruggiero)\
**Post date:** [February 17, 2014, 5:02pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/1 "2014-02-17T17:02:18Z")

</div>

Hi all,

i would like to understand why my ElasticSearch Node is display me that 45  
gb of VIRT memory is used even if the system is pretty cool...

as i see if i run some query with kiaban the load averege goes suddenly to  
4 or 8 but the physical memory still ok and neither swap is used.

Thanks for all explantion and supports...

[https://lh3.googleusercontent.com/-1UteIHXWN\_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT\_Usage.png](https://lh3.googleusercontent.com/-1UteIHXWN_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT_Usage.png)

--  
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/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 17, 2014, 5:25pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/2 "2014-02-17T17:25:26Z")

</div>

You must not be worried about the VIRT column in the top display.

In the VIRT column, there is no real memory diaplsyed, but all requests for  
virtual address space which is not allocated is shown.

You can VIRT think of all kind of memory requests like direct buffers the  
Java JVM wanted to allocate in their lifetime. Only parts of this address  
space is active, it's the RSS column.

Jörg

On Mon, Feb 17, 2014 at 6:02 PM, [stefano.secure@gmail.com](mailto:stefano.secure@gmail.com) wrote:

> Hi all,
> 
> i would like to understand why my Elasticsearch Node is display me that 45  
> gb of VIRT memory is used even if the system is pretty cool...
> 
> as i see if i run some query with kiaban the load averege goes suddenly to  
> 4 or 8 but the physical memory still ok and neither swap is used.
> 
> Thanks for all explantion and supports...
> 
> [https://lh3.googleusercontent.com/-1UteIHXWN\_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT\_Usage.png](https://lh3.googleusercontent.com/-1UteIHXWN_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT_Usage.png)
> 
> --  
> 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/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAKdsXoHabxjSAbosqYV%3DjJKCD5f6eVO1Er%3DrOp381\_ZhDFj3yA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHabxjSAbosqYV%3DjJKCD5f6eVO1Er%3DrOp381_ZhDFj3yA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![stefano\_ruggiero](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stefano\_ruggiero](https://discuss.elastic.co/u/stefano_ruggiero)\
**Post date:** [February 17, 2014, 5:36pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/3 "2014-02-17T17:36:41Z")

</div>

thanks Jorg for the faster anwer.

but iam not able to understand why if i have enought RAM and iam on FC Disk  
if i run some query in Kibana i see a very high Load Averege about 8 or 10,  
and i perform query on 100 milion documents..

Il giorno lunedì 17 febbraio 2014 18:25:26 UTC+1, Jörg Prante ha scritto:

> You must not be worried about the VIRT column in the top display.
> 
> In the VIRT column, there is no real memory diaplsyed, but all requests  
> for virtual address space which is not allocated is shown.
> 
> You can VIRT think of all kind of memory requests like direct buffers the  
> Java JVM wanted to allocate in their lifetime. Only parts of this address  
> space is active, it's the RSS column.
> 
> Jörg
> 
> On Mon, Feb 17, 2014 at 6:02 PM, \<[stefano...@gmail.com](mailto:stefano...@gmail.com) \<javascript:\>\>wrote:
> 
> > Hi all,
> > 
> > i would like to understand why my Elasticsearch Node is display me that  
> > 45 gb of VIRT memory is used even if the system is pretty cool...
> > 
> > as i see if i run some query with kiaban the load averege goes suddenly  
> > to 4 or 8 but the physical memory still ok and neither swap is used.
> > 
> > Thanks for all explantion and supports...
> > 
> > [https://lh3.googleusercontent.com/-1UteIHXWN\_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT\_Usage.png](https://lh3.googleusercontent.com/-1UteIHXWN_I/UwJAZgC6xMI/AAAAAAAAABQ/4YdhzQ21tbI/s1600/VIRT_Usage.png)
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/462ca065-f293-4cde-8545-f98e8764d31a%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/6b6f8c8f-161a-4eca-b91d-c9a8d6772763%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b6f8c8f-161a-4eca-b91d-c9a8d6772763%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 17, 2014, 6:57pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/4 "2014-02-17T18:57:02Z")

</div>

Load is a different issue, it is related to the number of processes running  
and waiting for the CPU.

What about CPU peaks? Is it just a single query that causes CPU peaks? How  
long does the query take to complete?

Can you see something in the logs?

Jörg

--  
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/CAKdsXoE2Q9CU8Beu%2BFt5YffxnxX3FqZdBC7B94t5gkPoR%3Dfz6Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE2Q9CU8Beu%2BFt5YffxnxX3FqZdBC7B94t5gkPoR%3Dfz6Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![stefano\_ruggiero](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stefano\_ruggiero](https://discuss.elastic.co/u/stefano_ruggiero)\
**Post date:** [February 17, 2014, 9:03pm UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/5 "2014-02-17T21:03:04Z")

</div>

Hi jorg,

let me reproduce the usses and then collects all the information needed for  
a better examplantion.

as i saw the simple count query for 10 milion events overload my Load  
Average even if my quad core still not at 100% , the query ends in about 10  
seconds and i cant find any past errors in logs.

iam running ES 1.0.0 with 4 nodes

Il giorno lunedì 17 febbraio 2014 19:57:02 UTC+1, Jörg Prante ha scritto:

> Load is a different issue, it is related to the number of processes  
> running and waiting for the CPU.
> 
> What about CPU peaks? Is it just a single query that causes CPU peaks? How  
> long does the query take to complete?
> 
> Can you see something in the logs?
> 
> Jörg

--  
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/d493a00f-fd51-44db-998e-5794b26d0f1e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d493a00f-fd51-44db-998e-5794b26d0f1e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:49am UTC](https://discuss.elastic.co/t/high-virt-on-elasticsearch-java-process/15853/6 "2017-07-06T01:49:35Z")

</div>


