# Is it possible to run Logstash 7.6.2 on 2GB RAM and 2 Core CPU

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460>\
**Category:** Logstash\
**Created:** [May 27, 2020, 5:46am UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460 "2020-05-27T05:46:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthiknpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthiknpy/32/53587_2.png) [@karthiknpy](https://discuss.elastic.co/u/karthiknpy)\
**Post date:** [May 27, 2020, 5:46am UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/1 "2020-05-27T05:46:35Z")

</div>

Hi Team,

I have only one Linux server with 2GB RAM and 2 core CPUs. Is it possible to tune the JVM limit the memory and use logstash in this server.

I have seen the optimization guide but it is some high level tech to me. Please help.

Regards  
Karthik.K

---

<div class="post-metadata">

**Author:** ![jack\_richer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_richer/32/69097_2.png) [@jack\_richer](https://discuss.elastic.co/u/jack_richer)\
**Post date:** [May 27, 2020, 7:11am UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/2 "2020-05-27T07:11:30Z")

</div>

i think it is

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 27, 2020, 12:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/3 "2020-05-27T12:39:45Z")

</div>

I run logstash on a t2.micro instance (1 CPU, 1 GB RAM) so it will run on twice that. Whether it will provide enough performance for your use case is a different question.

---

<div class="post-metadata">

**Author:** ![karthiknpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthiknpy/32/53587_2.png) [@karthiknpy](https://discuss.elastic.co/u/karthiknpy)\
**Post date:** [May 28, 2020, 3:21pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/4 "2020-05-28T15:21:50Z")

</div>

Hi Badger,

In my instance the logstash service keeps restarting due to some issues. Donno why and I can see majority of the

My 2 cores are being used 100% and Swap space is used around 65%.

Is there any way we can optimize this and make it to run with a reasonable performance ?

Regards  
Karthik.K

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 28, 2020, 4:44pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/5 "2020-05-28T16:44:18Z")

</div>

> [@karthiknpy](#):
>
> In my instance the logstash service keeps restarting due to some issues. Donno why and I can see majority of the

Read the logs, find the issues, resolve them....

---

<div class="post-metadata">

**Author:** ![karthiknpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthiknpy/32/53587_2.png) [@karthiknpy](https://discuss.elastic.co/u/karthiknpy)\
**Post date:** [June 1, 2020, 1:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/6 "2020-06-01T13:48:00Z")

</div>

I have managed to run logstash 7.6.2 on a docker with flags --memory="1024m" and --cpus=1

Its running fine. So I find it better to run logstash as docker container to be resource effective.

---

<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:** [June 29, 2020, 1:58pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-logstash-7-6-2-on-2gb-ram-and-2-core-cpu/234460/7 "2020-06-29T13:58:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
