# How to set min and max mem with .deb install?

**URL:** <https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641>\
**Category:** Elasticsearch\
**Created:** [April 19, 2013, 11:25am UTC](https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641 "2013-04-19T11:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [April 19, 2013, 11:25am UTC](https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641/1 "2013-04-19T11:25:06Z")

</div>

Hi -- I want to use the .deb install for ElasticSearch, as it is easier,  
but can't figure out how to set the -Xms and -Xmx values.  
Could anyone advise me?  
Cheers,  
Doug.

--  
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:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 19, 2013, 11:29am UTC](https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641/2 "2013-04-19T11:29:31Z")

</div>

Hey Doug,

You should be able to set the ES\_HEAP\_SIZE variable in  
/etc/default/elasticsearch and then start normally with the init script

--Alex

On Fri, Apr 19, 2013 at 1:25 PM, doug livesey [biot023@gmail.com](mailto:biot023@gmail.com) wrote:

> Hi -- I want to use the .deb install for Elasticsearch, as it is easier,  
> but can't figure out how to set the -Xms and -Xmx values.  
> Could anyone advise me?  
> Cheers,  
> Doug.
> 
> --  
> 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).

--  
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:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [April 19, 2013, 11:44am UTC](https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641/3 "2013-04-19T11:44:13Z")

</div>

That did it!  
Thankyou very, very much! 🙂

On 19 April 2013 12:29, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey Doug,
> 
> You should be able to set the ES\_HEAP\_SIZE variable in  
> /etc/default/elasticsearch and then start normally with the init script
> 
> --Alex
> 
> On Fri, Apr 19, 2013 at 1:25 PM, doug livesey [biot023@gmail.com](mailto:biot023@gmail.com) wrote:
> 
> > Hi -- I want to use the .deb install for Elasticsearch, as it is easier,  
> > but can't figure out how to set the -Xms and -Xmx values.  
> > Could anyone advise me?  
> > Cheers,  
> > Doug.
> > 
> > --  
> > 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).
> 
> --  
> 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).

--  
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:40am UTC](https://discuss.elastic.co/t/how-to-set-min-and-max-mem-with-deb-install/11641/4 "2017-07-06T02:40:25Z")

</div>


