# Where is rest of the memory?

**URL:** <https://discuss.elastic.co/t/where-is-rest-of-the-memory/205537>\
**Category:** Logstash\
**Created:** [October 28, 2019, 6:52pm UTC](https://discuss.elastic.co/t/where-is-rest-of-the-memory/205537 "2019-10-28T18:52:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Post date:** [October 28, 2019, 6:52pm UTC](https://discuss.elastic.co/t/where-is-rest-of-the-memory/205537/1 "2019-10-28T18:52:58Z")

</div>

I am trying to install Logstash 7.4.0 from the RPM. I have a 6.8.3 RPM already installed and the process is running. I am getting the following error:

```
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
logstash-7.4.0.rpm | 166 MB 00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating : 1:logstash-7.4.0-1.noarch 1/2 
warning: /etc/logstash/jvm.options created as /etc/logstash/jvm.options.rpmnew
warning: /etc/logstash/log4j2.properties created as /etc/logstash/log4j2.properties.rpmnew
Using provided startup.options file: /etc/logstash/startup.options
Errno::ENOMEM: Cannot allocate memory - systemctl
            spawn at org/jruby/RubyProcess.java:1567
            spawn at org/jruby/RubyKernel.java:1646
        popen_run at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/open3.rb:202
           popen3 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/open3.rb:98
          execute at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/detector.rb:74
   detect_systemd at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/detector.rb:29
  detect_platform at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/detector.rb:24
           detect at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/detector.rb:18
   setup_defaults at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:153
          execute at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:119
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:114
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
           <main> at /usr/share/logstash/lib/systeminstall/pleasewrap.rb:12
Unable to install system startup script for Logstash.
  Cleanup : 1:logstash-6.8.3-1.noarch 2/2 
  Verifying : 1:logstash-7.4.0-1.noarch 1/2 
  Verifying : 1:logstash-6.8.3-1.noarch  

```

To fix it, I had to stop the process and install the package.

I have allocated 50% of RAM to logstash. So, I assumed rest should be available for the system. Total RAM is 8 gb. So, please suggest why there is no memory left.

---

<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:** [November 25, 2019, 6:53pm UTC](https://discuss.elastic.co/t/where-is-rest-of-the-memory/205537/2 "2019-11-25T18:53:04Z")

</div>

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