# 4GB RAMのDOサーバーを完全に活用する方法は？

**URL:** https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343
**Category:** Support
**Created:** [2018 年 7 月 28 日午前 7:59 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343 "2018-07-28T07:59:24Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [2018 年 7 月 28 日午前 7:59 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/1 "2018-07-28T07:59:24Z")

</div>

My digital ocean server has 4 GB Memory, 80gb disk, 2 vCPUs.

How do I fully utilize it, because I read somewhere on meta awhile back where the standard self-host install of Discourse is optimised for a 2GB RAM server, and that you have to change some things in SSH for a 4gb server. Thanks

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018 年 7 月 28 日午前 8:23 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/2 "2018-07-28T08:23:59Z")

</div>

It should scale up as it needs more resources! to utilize the 4GB you should focus on building engagement. 😉

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年 7 月 28 日午前 11:37 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/3 "2018-07-28T11:37:48Z")

</div>

The `./discourse-setup` script sets the memory parameters correctly based on cpu cores and ram detected, already.

---

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [2018 年 7 月 28 日午後 2:30 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/4 "2018-07-28T14:30:30Z")

</div>

What about if the specs have changed? I originally setup on a 2GB droplet but have upgraded to a 4GB droplet. Do I have to do anything to take advantage of the additional memory or has Discourse already handled that automagically?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年 7 月 28 日午後 7:45 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/5 "2018-07-28T19:45:07Z")

</div>

Run the setup again and it should enter the new values appropriate for your RAM and CPU.

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [2018 年 7 月 28 日午後 7:51 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/6 "2018-07-28T19:51:57Z")

</div>

![20180728_125048](https://global.discourse-cdn.com/meta/original/3X/3/4/34a872bc1281bf4e0dce448c406c75ecf7a9a4e1.jpg)

What’s this? Also is this going to delete my website and start over or anything?

---

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [2018 年 7 月 28 日午後 8:00 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/7 "2018-07-28T20:00:28Z")

</div>

> [@codinghorror](#):
>
> Run the setup again and it should enter the new values appropriate for your RAM and CPU.

It has been a long time since I installed my forum. How do I run the setup again? Will I have to redo all mail settings, etc? I’m a little nervous I’ll stuff things up & regret doing anything at all…

---

<div class="post-metadata">

### Author: ![kkus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kkus/32/102110_2.png) [@kkus](https://meta.discourse.org/u/kkus)
#### Post date: [2018 年 7 月 28 日午後 10:01 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/8 "2018-07-28T22:01:26Z")

</div>

In any case, I think you should make a backup just in case something happens.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018 年 7 月 30 日午後 12:34 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/9 "2018-07-30T12:34:42Z")

</div>

See where it says “memory paramesters updated?” That means that it updated the memory parameters. You can either

```plaintext
./launcher rebuild app

```

or

```plaintext
./launcher destroy app
./launcher start app

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018 年 8 月 29 日午後 12:34 UTC](https://meta.discourse.org/t/how-to-fully-utilize-do-server-with-4gb-ram/93343/10 "2018-08-29T12:34:44Z")

</div>

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