# 0.90.2 Memory bug

**URL:** https://discuss.elastic.co/t/0-90-2-memory-bug/13664
**Category:** Elasticsearch
**Created:** [September 18, 2013, 9:57am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664 "2013-09-18T09:57:34Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 18, 2013, 9:57am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/1 "2013-09-18T09:57:34Z")

</div>

Having a werid issue where elasticsearch is using a lot of memory. I have  
the jvm settings to not use more then 1g but its using about 7gb of memory.  
Linux is reporting it using about 1g as it should be. But when i kill the  
proc all the memory gets flushed.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [September 18, 2013, 10:07am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/2 "2013-09-18T10:07:50Z")

</div>

Where do you see that 7GB is used, node stats api? The jvm setting  
ES\_HEAP\_SIZE only sets the jvm heapspace which is just one part of the  
total memory that ES uses.

On 18 September 2013 11:57, Alexis Okuwa [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> Having a werid issue where elasticsearch is using a lot of memory. I have  
> the jvm settings to not use more then 1g but its using about 7gb of memory.  
> Linux is reporting it using about 1g as it should be. But when i kill the  
> proc all the memory gets flushed.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 19, 2013, 10:54am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/3 "2013-09-19T10:54:46Z")

</div>

when i look at top or htop it shows 7gb being used and if i kill  
elasticsearch it that memory usage goes away.

On Wed, Sep 18, 2013 at 3:07 AM, Martijn v Groningen \<  
[martijn.v.groningen@gmail.com](mailto:martijn.v.groningen@gmail.com)\> wrote:

> Where do you see that 7GB is used, node stats api? The jvm setting  
> ES\_HEAP\_SIZE only sets the jvm heapspace which is just one part of the  
> total memory that ES uses.
> 
> On 18 September 2013 11:57, Alexis Okuwa [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:
> 
> > Having a werid issue where elasticsearch is using a lot of memory. I have  
> > the jvm settings to not use more then 1g but its using about 7gb of memory.  
> > Linux is reporting it using about 1g as it should be. But when i kill the  
> > proc all the memory gets flushed.
> > 
> > --  
> > 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).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen
> 
> --  
> 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
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: [September 19, 2013, 7:20pm UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/4 "2013-09-19T19:20:52Z")

</div>

What JVM settings did you use?

If you did not set ES\_DIRECT\_SIZE, the memory usage for direct buffers is  
unlimited by default. That means the JVM lends memory from the OS until the  
OS does not have any more. It's not a bug, it's a feature to exploit the OS  
for best performance and resource usage.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 19, 2013, 10:03pm UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/5 "2013-09-19T22:03:38Z")

</div>

Well its using 4gb of ram, and 3+gb of swap.

On Thu, Sep 19, 2013 at 12:20 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> What JVM settings did you use?
> 
> If you did not set ES\_DIRECT\_SIZE, the memory usage for direct buffers is  
> unlimited by default. That means the JVM lends memory from the OS until the  
> OS does not have any more. It's not a bug, it's a feature to exploit the OS  
> for best performance and resource usage.
> 
> Jörg
> 
> --  
> 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 21, 2013, 5:25am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/6 "2013-09-21T05:25:42Z")

</div>

So i set the value that you pointed out to 2g. and i have Xmx at 1gb but i  
am still using about 3.5gb of really memory and 999mb of swap. but htop is  
reporting that its only using 17.1% of memory

On Thu, Sep 19, 2013 at 3:03 PM, Alexis Okuwa [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> Well its using 4gb of ram, and 3+gb of swap.
> 
> On Thu, Sep 19, 2013 at 12:20 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > What JVM settings did you use?
> > 
> > If you did not set ES\_DIRECT\_SIZE, the memory usage for direct buffers is  
> > unlimited by default. That means the JVM lends memory from the OS until the  
> > OS does not have any more. It's not a bug, it's a feature to exploit the OS  
> > for best performance and resource usage.
> > 
> > Jörg
> > 
> > --  
> > 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Enjoy,  
> Alexis Okuwa  
> WojonsTech  
> 424.835.1223

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
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: [September 21, 2013, 10:05am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/7 "2013-09-21T10:05:34Z")

</div>

It is impossible to comment without seeing all the ES configs and the  
output values of your diagnostic programs.

Maybe you run 32bit JVM and can't lock ES via mmap into RAM.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 22, 2013, 12:57am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/8 "2013-09-22T00:57:11Z")

</div>

This is the version i am downloading using my configuration managment  
[https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb](https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb)

What config files do you need?

# /usr/share/elasticsearch/bin/elasticsearch -v

Elasticsearch Version: 0.90.2, JVM: 1.7.0\_25(23.25-b01)

On Sat, Sep 21, 2013 at 3:05 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> It is impossible to comment without seeing all the ES configs and the  
> output values of your diagnostic programs.
> 
> Maybe you run 32bit JVM and can't lock ES via mmap into RAM.
> 
> Jörg
> 
> --  
> 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
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: [September 22, 2013, 9:17am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/9 "2013-09-22T09:17:23Z")

</div>

Still wondering about your machine, what OS and if JVM is 32/64 bit.

If you have only 4g RAM total, and OS and file system cache take their  
space, then you have much less than 2g heap for ES, maybe just 1g which is  
the standard config.

I suggest 32bit JVM and running with standard config.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 22, 2013, 11:17am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/10 "2013-09-22T11:17:48Z")

</div>

# java -version

java version "1.7.0\_25"  
Java(TM) SE Runtime Environment (build 1.7.0\_25-b15)  
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

/usr/lib/jvm/java-7-oracle/bin/java -Xms256m -Xmx1g  
-XX:MaxDirectMemorySize=2g -Xss256k -Djava.awt.headless=true  
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly  
-XX:+HeapDumpOnOutOfMemoryError -Delasticsearch  
-Des.pidfile=/var/run/elasticsearch.pid  
-Des.path.home=/usr/share/elasticsearch -cp  
:/usr/share/elasticsearch/lib/elasticsearch-0.90.2.jar:/usr/share/elasticsearch/lib/_:/usr/share/elasticsearch/lib/sigar/_  
-Des.default.config=/etc/elasticsearch/elasticsearch.yml  
-Des.default.path.home=/usr/share/elasticsearch  
-Des.default.path.logs=/var/log/elasticsearch  
-Des.default.path.data=/var/lib/elasticsearch  
-Des.default.path.work=/tmp/elasticsearch  
-Des.default.path.conf=/etc/elasticsearch  
org.elasticsearch.bootstrap.Elasticsearch

Linux myhost 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86\_64 GNU/Linux

On Sun, Sep 22, 2013 at 2:17 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> Still wondering about your machine, what OS and if JVM is 32/64 bit.
> 
> If you have only 4g RAM total, and OS and file system cache take their  
> space, then you have much less than 2g heap for ES, maybe just 1g which is  
> the standard config.
> 
> I suggest 32bit JVM and running with standard config.
> 
> Jörg
> 
> --  
> 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 24, 2013, 6:35am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/11 "2013-09-24T06:35:55Z")

</div>

ping?

On Sun, Sep 22, 2013 at 4:17 AM, Alexis Okuwa [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> # java -version
> 
> java version "1.7.0\_25"  
> Java(TM) SE Runtime Environment (build 1.7.0\_25-b15)  
> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
> 
> /usr/lib/jvm/java-7-oracle/bin/java -Xms256m -Xmx1g  
> -XX:MaxDirectMemorySize=2g -Xss256k -Djava.awt.headless=true  
> -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly  
> -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch  
> -Des.pidfile=/var/run/elasticsearch.pid  
> -Des.path.home=/usr/share/elasticsearch -cp  
> :/usr/share/elasticsearch/lib/elasticsearch-0.90.2.jar:/usr/share/elasticsearch/lib/_:/usr/share/elasticsearch/lib/sigar/_  
> -Des.default.config=/etc/elasticsearch/elasticsearch.yml  
> -Des.default.path.home=/usr/share/elasticsearch  
> -Des.default.path.logs=/var/log/elasticsearch  
> -Des.default.path.data=/var/lib/elasticsearch  
> -Des.default.path.work=/tmp/elasticsearch  
> -Des.default.path.conf=/etc/elasticsearch  
> org.elasticsearch.bootstrap.Elasticsearch
> 
> Linux myhost 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86\_64 GNU/Linux
> 
> On Sun, Sep 22, 2013 at 2:17 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > Still wondering about your machine, what OS and if JVM is 32/64 bit.
> > 
> > If you have only 4g RAM total, and OS and file system cache take their  
> > space, then you have much less than 2g heap for ES, maybe just 1g which is  
> > the standard config.
> > 
> > I suggest 32bit JVM and running with standard config.
> > 
> > Jörg
> > 
> > --  
> > 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Enjoy,  
> Alexis Okuwa  
> WojonsTech  
> 424.835.1223

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
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: [September 24, 2013, 7:22am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/12 "2013-09-24T07:22:06Z")

</div>

Your settings seem too high for 4g total RAM. You allocate Java Program  
Binary (~100m) + Stack (~100m) + Heap (1g) + direct buffers (2g) which  
alone is ~3,5g and is far more than recommended 4g / 2 = 2g, so it is not  
surprisingly using swap memory.

Please do not set direct buffer to 2g, this makes no sense on 4g total RAM  
machine.

Also, you use 64bit Java, which uses more memory than 32bit Java. Note that  
32bit Java does not make use of direct buffers. Did you try 32bit Java by  
using option -d32 ?

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 24, 2013, 7:36am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/13 "2013-09-24T07:36:59Z")

</div>

I can increases the ram, the vm is inside of a dedicated server that I own.  
I been running this machine for months and never had a memory issue so its  
just very werid that it is coming up now.

On Tue, Sep 24, 2013 at 12:22 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> Your settings seem too high for 4g total RAM. You allocate Java Program  
> Binary (~100m) + Stack (~100m) + Heap (1g) + direct buffers (2g) which  
> alone is ~3,5g and is far more than recommended 4g / 2 = 2g, so it is not  
> surprisingly using swap memory.
> 
> Please do not set direct buffer to 2g, this makes no sense on 4g total RAM  
> machine.
> 
> Also, you use 64bit Java, which uses more memory than 32bit Java. Note  
> that 32bit Java does not make use of direct buffers. Did you try 32bit Java  
> by using option -d32 ?
> 
> Jörg
> 
> --  
> 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [September 26, 2013, 5:44pm UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/14 "2013-09-26T17:44:03Z")

</div>

I have seen elasticsearch now go up to 7.5gb of ram+swap usage based on my  
settings elasticserch seems to be ignoring them.

On Tue, Sep 24, 2013 at 12:36 AM, Alexis Okuwa [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> I can increases the ram, the vm is inside of a dedicated server that I  
> own. I been running this machine for months and never had a memory issue so  
> its just very werid that it is coming up now.
> 
> On Tue, Sep 24, 2013 at 12:22 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > Your settings seem too high for 4g total RAM. You allocate Java Program  
> > Binary (~100m) + Stack (~100m) + Heap (1g) + direct buffers (2g) which  
> > alone is ~3,5g and is far more than recommended 4g / 2 = 2g, so it is not  
> > surprisingly using swap memory.
> > 
> > Please do not set direct buffer to 2g, this makes no sense on 4g total  
> > RAM machine.
> > 
> > Also, you use 64bit Java, which uses more memory than 32bit Java. Note  
> > that 32bit Java does not make use of direct buffers. Did you try 32bit Java  
> > by using option -d32 ?
> > 
> > Jörg
> > 
> > --  
> > 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/qfPiUVgJ5K0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qfPiUVgJ5K0/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Enjoy,  
> Alexis Okuwa  
> WojonsTech  
> 424.835.1223

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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).  
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, 2:14am UTC](https://discuss.elastic.co/t/0-90-2-memory-bug/13664/15 "2017-07-06T02:14:35Z")

</div>


