# Is Discourse using Ruby 2.0? Howto use Ruby 2.2

**URL:** <https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248>\
**Category:** Self-hosting\
**Created:** [14.Май.2016 18:18:01 UTC](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248 "2016-05-14T18:18:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [14.Май.2016 22:10:32 UTC](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248/7 "2016-05-14T22:10:32Z")

</div>

> [@arrowcircle](#):
>
> But its not the way to sit on 2.0. Rails 5 will need 2.2 minimum version.

Memory usage is higher but almost back on 2.3

[https://rubybench.org/ruby/ruby/releases?result\_type=discourse\_memory\_usage](https://rubybench.org/ruby/ruby/releases?result_type=discourse_memory_usage)

Also performance is a bit slower on the 50 percentile, which is pretty much all the consumers of the docker image see cause we do out-of-band GC

[https://rubybench.org/ruby/ruby/releases?result\_type=discourse\_categories](https://rubybench.org/ruby/ruby/releases?result_type=discourse_categories)

That said, my hand is forced and I am going to have just run Ruby 2.3.1 in our latest images cause 2.0 is no longer supported.

We already have 2.2 with Github patches image that is running here on meta. It is activated with:

```plaintext
base_image: discourse/discourse_fast_switch:1.0.17

run:
   exec: use_22

```

---

_[View the full topic](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248)._
