# Error while installing plugins

**URL:** https://discuss.elastic.co/t/error-while-installing-plugins/56175
**Category:** Logstash
**Created:** [July 22, 2016, 11:55am UTC](https://discuss.elastic.co/t/error-while-installing-plugins/56175 "2016-07-22T11:55:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vilure](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@vilure](https://discuss.elastic.co/u/vilure)
#### Post date: [July 22, 2016, 11:55am UTC](https://discuss.elastic.co/t/error-while-installing-plugins/56175/1 "2016-07-22T11:55:40Z")

</div>

I have logstash 5 alpha4 installed and when i try to install plugins:  
`sudo /usr/share/logstash/bin/logstash-plugin install logstash-patterns-core`  
I get this:

```
Validating logstash-patterns-core
Installing logstash-patterns-core
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e0a00000, 22544384, 0) failed; error='Cannot allocate memory' (errno=12)
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.0.0.pre.alpha4), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.0.pre.alpha4'` succeeds before bundling.
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e0a00000, 22544384, 0) failed; error='Cannot allocate memory' (errno=12)

```

It's looks similar to [Logstash 5.0.0-alpha4 - Error while installing plugins #5581](https://github.com/elastic/logstash/issues/5581#issuecomment-232450467)  
But no one answered me here, any ideas?

---

<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, 4:46am UTC](https://discuss.elastic.co/t/error-while-installing-plugins/56175/2 "2017-07-06T04:46:42Z")

</div>


