# Unicorn log files using up all the space on my box

**URL:** <https://meta.discourse.org/t/unicorn-log-files-using-up-all-the-space-on-my-box/34937>\
**Category:** Product Support\
**Created:** [Octobre 26, 2015, 6:44 UTC](https://meta.discourse.org/t/unicorn-log-files-using-up-all-the-space-on-my-box/34937 "2015-10-26T18:44:59Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![twifno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twifno/32/121844_2.png) [@twifno](https://meta.discourse.org/u/twifno)\
**Post date:** [Avril 19, 2016, 4:00 UTC](https://meta.discourse.org/t/unicorn-log-files-using-up-all-the-space-on-my-box/34937/17 "2016-04-19T16:00:14Z")

</div>

I have also encountered this issue, and it seems caused by out-of-memory. 1G memory + 2G SWAP seems not enough for hosting discourse, I have upgraded to 2G though.

the tail of the error log:

```plaintext
E, [2016-04-19T07:53:47.411276 #54] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
E, [2016-04-19T07:53:47.411301 #54] ERROR -- : config/unicorn.conf.rb:84:in `max_rss'
E, [2016-04-19T07:53:47.411325 #54] ERROR -- : config/unicorn.conf.rb:99:in `out_of_memory?'
E, [2016-04-19T07:53:47.411349 #54] ERROR -- : config/unicorn.conf.rb:122:in `check_sidekiq_heartbeat'
E, [2016-04-19T07:53:47.411381 #54] ERROR -- : config/unicorn.conf.rb:146:in `master_sleep'
E, [2016-04-19T07:53:47.495358 #54] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:284:in `join'
E, [2016-04-19T07:53:47.495412 #54] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.0.1/bin/unicorn:126:in `<top (required)>'
E, [2016-04-19T07:53:47.495464 #54] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:22:in `load'
E, [2016-04-19T07:53:47.495489 #54] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:22:in `<main>'
I, [2016-04-19T07:53:47.495527 #54] INFO -- : master reopening logs...

```

---

_[View the full topic](https://meta.discourse.org/t/unicorn-log-files-using-up-all-the-space-on-my-box/34937)._
