# 어제 업데이트 후 사이트가 50초 걸려 열립니다 (그 이후로는 정상 동작)

**URL:** https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515
**Category:** Support
**Created:** [12월 10, 2024, 5:03오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515 "2024-12-10T05:03:06Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 10, 2024, 5:03오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/1 "2024-12-10T05:03:06Z")

</div>

[my website](https://BathindaHelper.com)를 v3.4.0 Beta3-dev- ([5e86bc2f43](https://github.com/discourse/discourse/commits/5e86bc2f4378a9eaa2e6d3742edac1ae34c62778))로 업데이트하기 전까지는 모든 것이 정상이었습니다.

하지만 어제 이 업데이트 이후로 사이트가 열리는데 거의 1분 이상 걸립니다.

- 진단 단계로 모든 테마 컴포넌트와 모든 플러그인을 비활성화하고 Web\_Only 컨테이너를 다시 빌드해 보았지만, 여전히 동일한 문제가 발생합니다.
- 하지만 세이프 모드로 실행할 때 3개의 체크박스를 모두 선택하면 이전보다는 빠르게 로드되지만, 여전히 거의 30초가 걸립니다. 첫 번째 박스만 선택하고 나머지 두 개를 선택 해제하거나 그 반대인 경우 속도에 아무런 이점이 없습니다.

도와주세요.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 10, 2024, 5:23오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/2 "2024-12-10T05:23:06Z")

</div>

믿기 어렵겠지만, 이 게시글을 작성한 지 겨우 5분 후에 (그것도 제 관리자 인터페이스 테마를 다른 것으로 바꿨다가 다시 원래대로 되돌린 것만으로) 문제가 해결되었습니다.

즉, 업데이트나 재빌드 같은 작업은 전혀 하지 않았는데, 사이트가 정상적으로 열리기 시작했습니다(문제가 발생한 동안 24시간이 경과했습니다). 이 주제를 삭제해야 할지 고민이 되네요(어쨌든 이 주제를 닫을 예정입니다).

**수정: 다음 날 문제가 다시 발생했습니다. 때로는 나타나고 때로는 나타나지 않습니다. 더 자세한 내용은 아래에 보고하겠습니다.**

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 10, 2024, 9:15오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/3 "2024-12-10T09:15:01Z")

</div>

(업데이트 후 일부 마이그레이션 작업이 한동안 실행 중이었을 수 있습니다.)

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 11, 2024, 1:58오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/4 "2024-12-11T13:58:34Z")

</div>

@Ed_S 감사합니다.  
하지만 오늘도 다시 5분간 동일한 문제가 발생했습니다. 오늘 이 문제가 생겼을 때, ‘Moderator’ 권한을 가진 다른 사용자로 크롬의 시크릿 모드에서 사이트를 열어보았더니, 이쪽에서도 문제가 나타났지만 50% 정도였습니다(페이지가 절반의 시간, 즉 약 20~30초 만에 열렸습니다).

그리고 모바일에서도 열어보니 동일한 문제가 있었습니다. 하지만 30분 후 사이트를 다시 열었을 때는 모든 것이 정상적으로 작동했습니다.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 11, 2024, 2:56오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/5 "2024-12-11T14:56:46Z")

</div>

아래의 [quote=“Ed S, post:33, topic:293743, username:Ed\_S”]  
표준 즉시 진단 명령어 목록을 시도해 보세요:

```plaintext
cat /etc/lsb-release
uptime
df -h /
free
vmstat 5 5
dmesg|egrep -i "memory|oom|kill"
ps auxrc

```

[/quote]

다만, 서버가 실행 중인 기기의 명령줄에서 이 명령어들을 실행할 때 사이트를 동시에 탐색하여 속도 저하 현상을 유발해 보십시오.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 11, 2024, 3:07오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/6 "2024-12-11T15:07:29Z")

</div>

미니 프로파일러를 활성화하고 사용하며, 결과를 보고하는 것도 가치가 있습니다.

아래를 참고하세요.

> [@tobiaseigen](#):
>
> 아래는 좋은 단계별 가이드인 것 같습니다.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 12, 2024, 6:03오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/7 "2024-12-12T06:03:43Z")

</div>

> [@Ed\_S](#):
>
> `dmesg|egrep -i "memory|oom|kill"`

정말 감사합니다.  
시간이 된다면 아래 내용을 확인해 주세요. 제 생각에는 모든 결과가 매우 정확합니다:

 ![이미지는 시스템 정보, 디스크 사용량, 메모리 사용량 및 커널 메모리 할당 세부 사항 등 다양한 명령어 출력을 포함하는 터미널 인터페이스를 보여줍니다. (AI 캡션)](https://global.discourse-cdn.com/meta/original/4X/f/c/a/fca4db8f3458930e8f6b3e9d220ec13f501c8f7a.png)  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/e/a/a/eaa3ff9ad00e34cb636442105b3442511e4c7a70.png)

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 12, 2024, 6:18오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/8 "2024-12-12T06:18:44Z")

</div>

> [@Ed\_S](#):
>
> 또한 미니 프로파일러를 활성화하고 사용하여 결과를 보고하는 것도 가치가 있습니다.

‘Mini Profiler’ 주제에 대해 완전히 이해하지 못한 부분이 몇 가지 있었습니다. 따라서 반드시 그렇게 해야 한다면 그 해결책을 선택하겠습니다.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 12, 2024, 9:05오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/10 "2024-12-12T09:05:55Z")

</div>

진단 실행해 주셔서 감사합니다. 거기서 가장 눈에 띄는 것은 디스크에 쓰여지는 데이터량이 매우 많다는 점입니다. 하지만 그 원인은 추측할 수 없습니다.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 12, 2024, 9:08오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/11 "2024-12-12T09:08:15Z")

</div>

iotop을 설치해서 실행해 보는 것이 좋을 수도 있습니다. 어떤 프로세스가 디스크에 많은 데이터를 쓰는지를 확인할 수 있을지도 모릅니다.

```plaintext
apt install iotop-c
iotop -o -b -n 22

```

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 12, 2024, 11:39오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/12 "2024-12-12T11:39:23Z")

</div>

감사합니다.  
참고로, 제 Ubuntu 서버에는 이 웹사이트 하나만 설치되어 있습니다. 그리고 사용자 수도 매우 적어, 하루에 3~4명 정도만 사이트를 방문합니다. 따라서 서버에서 발생하는 모든 활동은 백그라운드 활동일 수밖에 없습니다.

두 번째로, web\_only 컨테이너를 재빌드한 직후 `iotop` 명령어를 실행해 보았습니다. 이 정보가 특정 상황에서 관련이 있을 수 있을 것 같아서요. 또한, 웹사이트는 거의 97% 빠르게 열립니다(저/관리자 기준 5초 만에 열림). 문제가 발생하면 하드 리프레시(Ctrl+F5) 시 30초 이상 걸리기 시작합니다.

 !['Iotop' command, displaying disk I/O statistics for different processes. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/1/3/e1377dcbc95b559be9d8e56cc465a384a5463ac4.png)

 ![A screenshot of a terminal interface displaying a command line and several lines of text, possibly related to disk read and write operations. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/d/3/9d3e012781b80de42bf239dade42f3807c780b26.png)  
첫 번째 스크린샷과 두 번째 스크린샷 사이에 결과물의 한 줄이 누락되었을 수 있습니다.

도와주셔서 감사합니다.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [12월 12, 2024, 2:27오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/13 "2024-12-12T14:27:02Z")

</div>

공식 설치 지침에 따라 Discourse를 설치하셨나요?

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 12, 2024, 6:29오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/14 "2024-12-12T18:29:37Z")

</div>

iotop 출력 결과에서 특별히 이상한 점은 보이지 않는 것 같습니다.

Sidekiq 상태를 살펴볼 가치가 있을 수 있습니다: 포럼의 url/sidekiq 페이지의 여러 탭(관리자 계정만 볼 수 있음)을 확인해 보세요.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 13, 2024, 4:15오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/15 "2024-12-13T04:15:49Z")

</div>

> [@tobiaseigen](#):
>
> [공식 설치](https://meta.discourse.org/t/142537?silent=true) 지침에 따라 discourse를 설치했나요?

네. 그리고 지난 4년간 제 사이트는 정상적으로 작동했습니다. 바로 전날 업데이트를 한 후 이 주제를 열었을 때야 비로소 이런 식으로 작동한다는 것을 알게 되었습니다(관리자로 Ctrl+F5를 눌러 강제 새로고침을 할 때, 하루 중 시점에 따라 5초에서 50초까지 걸리다가, 이후에는 정상적으로 작동함).

오늘도 다시 확인해 보니, 최신 버전의 크롬에서 다양한 사용자로 로그인하고, 모바일에서도(하지만 동일한 와이파이 환경에서) 확인해 보았더니, 열리는데 5초에서 30초 또는 50초까지 걸렸습니다.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 13, 2024, 4:16오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/16 "2024-12-13T04:16:30Z")

</div>

주된 부모 도메인 이름에서 이 Sidekiq가 표시되었습니다 (전체를 보여주기 위해 약간 줌아웃):

 ![The image shows a dashboard of a Redis queue system with statistics including version, uptime, connections, memory usage, and peak memory usage. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/7/5/675382e6bd94db440d718b96655ccbb5cd94c25b.png)

조금 줌인:

 ![This image shows a dashboard displaying statistics about a Sidekiq queue system, including the number of processed and failed messages over time, with a history graph showing the data trend. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/3/a/03a054e8629a26028825600f1830c2860387920f.png)

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 13, 2024, 1:39오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/17 "2024-12-13T13:39:19Z")

</div>

실패한 작업의 수가 상당히 많은 것 같아 중요한 문제가 될 수 있습니다. 아마 다른 전문가가 진단을 도와줄 수 있을지도 모릅니다.

비교를 위해 제 대시보드도 첨부합니다. 트래픽이 비교적 낮은 포럼입니다.

 ![The image is a dashboard showing statistics on processed, failed, busy, enqueued, retries, scheduled, and dead jobs, along with history and Redis metrics such as version, uptime, connections, memory usage, and peak memory usage. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/3/5/8351ecae3bdf8b2124e8282ff8beefd76d6565ec.jpeg)

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 17, 2024, 8:43오전 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/18 "2024-12-17T08:43:48Z")

</div>

> [@Ed\_S](#):
>
> 실패한 작업 수가 매우 많은 것으로 보이는데, 이는 상당한 문제일 수 있습니다. 아마 다른 누군가가 진단을 돕는 데 전문 지식을 가지고 있을지도 모릅니다.

kiq에서 이렇게 많은 '실패한 작업(Failure Jobs)'이 발생한 것에 대해 누가 도와줄 수 있을까요?

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 17, 2024, 1:21오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/19 "2024-12-17T13:21:08Z")

</div>

사이드킥(Sidekiq) 상태 탭 7개의 스크린샷을 공유해 주실 수 있을까요? 사이드킥 페이지 상단에는 다음 항목들이 표시되어야 합니다: Dashboard, Busy, Queues, Retries, Scheduled, Dead, Scheduler.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [12월 17, 2024, 1:50오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/20 "2024-12-17T13:50:11Z")

</div>

- 대시보드:  

- 바쁨(Busy):  

- 큐(Queues)  

- 재시도(Retries):  

그리고 더 많은 항목들이 생략되었습니다.

- 예약(Scheduled):  

- 죽은 작업(Dead)  

- 스케줄러(Scheduler)  

위 스크린샷에는 모든 내용을 담지 못했습니다.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [12월 17, 2024, 3:13오후 UTC](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515/21 "2024-12-17T15:13:08Z")

</div>

감사합니다. 저는 전문가가 아니지만, 두 가지 유형의 작업이 많이 눈에 띕니다: PostSentimentAnalysis와 GenerateEmbeddings.

내용에 영어와 힌디어가 섞여 있는 것이 관련이 있을지 궁금합니다. 이는 완전히 지원될 것으로 기대하지만, 비교적 드문 경우일 수도 있습니다.

[Next page](https://meta.discourse.org/t/after-yesterdays-upgrade-my-site-is-taking-50-seconds-to-open-and-then-behaves-normally/341515.md?page=2)
