# PERF: frontend-store에 메모리 누수가 있는 것 같습니다

**URL:** <https://meta.discourse.org/t/perf-there-seems-to-be-a-memory-leakage-in-frontend-store/393510>\
**Category:** Bug\
**Created:** [1월 15, 2026, 5:36오전 UTC](https://meta.discourse.org/t/perf-there-seems-to-be-a-memory-leakage-in-frontend-store/393510 "2026-01-15T05:36:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/579066_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)\
**Post date:** [1월 15, 2026, 8:52오전 UTC](https://meta.discourse.org/t/perf-there-seems-to-be-a-memory-leakage-in-frontend-store/393510/4 "2026-01-15T08:52:53Z")

</div>

재현 방법은 다음과 같습니다: 사용자가 페이지를 새로고침하지 않고 여러 번 주제 하단의 “제안/관련” 링크를 통해 한 주제에서 다른 주제로 이동하면, 제 테스트에서는 JS 힙 크기가 원래 100MB에서 약 500MB까지 증가했습니다(특히 게시물이 많은 주제를 방문한 경우). 또한 홈 페이지로 돌아가도 해당 메모리가 해제되지 않습니다.

이 JS 힙 크기는 브라우저 콘솔의 성능 탭에서 확인할 수 있으며, 메모리 사용량은 브라우저의 프로세스 매니저에서 확인할 수 있습니다.

이 문제를 보여줄 영상(약 3분)을 PR에 첨부했습니다. 같은 페이지를 몇 시간 동안 사용하게 되면 상황이 더 악화됩니다.

여기에 브레이크포인트를 설정하면 `_identityMap` 항목 수가 증가하는 것을 확인할 수 있습니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/2/b/a2b8a9d60bcfa5c1a207cce7dfdff1ab25e6f037.png)

다만 `_identityMap`이 이 문제의 근본 원인인지는 확실하지 않으며, 조사에 도움이 될 정보만 제공한 것입니다.

---

_[View the full topic](https://meta.discourse.org/t/perf-there-seems-to-be-a-memory-leakage-in-frontend-store/393510)._
