# 사용자 지정 플러그인으로 메모리 부족 오류 발생

**URL:** <https://meta.discourse.org/t/out-of-memory-errors-with-custom-plugin/167777>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [10월 20, 2020, 6:56오후 UTC](https://meta.discourse.org/t/out-of-memory-errors-with-custom-plugin/167777 "2020-10-20T18:56:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pelcami](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pelcami/32/59732_2.png) [@pelcami](https://meta.discourse.org/u/pelcami)\
**Post date:** [10월 20, 2020, 6:56오후 UTC](https://meta.discourse.org/t/out-of-memory-errors-with-custom-plugin/167777/1 "2020-10-20T18:56:18Z")

</div>

메모리 할당 설정에 대한 설명을 제공해 주실 분 계신가요?

간헐적으로 커널의 “out of memory”/덤프 메시지가 발생하고, 스왑 사용량이 3배로 증가했으며, 애플리케이션 응답 속도가 점점 더 저하되고 있어, 우리의 앱이 때때로 메모리를 모두 사용하는 것처럼 보입니다. 현재 시스템은 8GB의 메모리와 2GB의 스왑을 갖추고 있습니다. 세부 사항은 아래에 있습니다.

(["Cannot allocate memory" when upgrading](https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029))에서 물리적 메모리와 스왑을 추가하는 방법에 대한 설명을 확인해 보았지만, 이를 어떻게 할당하는지에 대한 자세한 내용을 찾지 못했습니다.

메모리 설정의 경우, 우리는 기본적으로 모든 기본값을 사용하고 있습니다. 시스템은 몇 분 후에 복구되지만, 사용량은 증가하고 있습니다. 성능을 개선하는 방법에 대해 알아볼 때가 된 것 같습니다. 다만, 이를 어디서 어떻게 설정해야 하는지 확신이 서지 않습니다. Docker 인스턴스에 할당된 메모리를 늘려야 하는지, 아니면 Ruby 유니콘(프로세스) 수를 늘려야 하는지(또는 둘 다?) 고민 중입니다.

저는 Ruby 경험은 없고 Docker 경험도 제한적인 시스템 관리자입니다 - 따라서 설정 파일의 위치와 사용할 문법을 알려주시면 큰 도움이 될 것입니다.

# Discourse 2.6.0 beta2 Ruby 2.3.1-2~ubuntu16.04.14 Ubuntu 16.04

 ![Screen Shot 2020-10-20 at 11.47.59 AM](https://global.discourse-cdn.com/meta/original/3X/7/e/7e43b61a7849ebaa06b8385389d692e1b6a81144.png)

 ![Screen Shot 2020-10-20 at 11.38.21 AM](https://global.discourse-cdn.com/meta/original/3X/3/2/3268ff15f42d3087cfe90b82559052e5e729c4ca.png)

---

_[View the full topic](https://meta.discourse.org/t/out-of-memory-errors-with-custom-plugin/167777)._
