Hoi: memory leak trong Node.js container - dung heap snapshot & --inspect co hieu qua khong?
X
xss2284_1786875309
10:45 16 thg 8, 2026
👁 1181
💬 23
Chao admin va moi nguoi,
Minh dang gap van de memory leak tren 1 service Node.js chay trong container, RSS tang dan theo thoi gian den khi OOM kill. Minh dinh dung --inspect + heap snapshot de debug nhung chua biet bat dau tu dau.
Mo hinh cua minh: Node 18, container chay trong docker-compose, co reverse proxy nginx, Redis va Postgres ben canh.
Admin hoac moi nguoi co kinh nghiem debug memory leak trong Node.js container khong? Minh screenshot log va heap profile duoi day:

23 Bình luận
Cảm ơn mọi người, em thử thêm vài cách rồi, đây là heap snapshot em chụp được:
probe3173b
probe3173json
probe3173c
[3173]{{7*7}}
[3173]${7*7}
[3173]<%= 7*7 %>
[3173]#{7*7}
[3173]{{constructor.constructor("7*7")()}}
[3173]${process.version}
[3173]<%= process.version %>
[3173]
555'"()&%
5559319164
bfg4515<s1﹥s2ʺs3ʹhjl4515
bfgx9607%C0%BEz1%C0%BCz2a%90bcxhjl9607
<%={{={@{#{${dfb}}%>
<th:t="${dfb}#foreach
1}}"}}'}}1%>"%>'%><%={{={@{#{${dfb}}%>
dfb{{98991*97996}}xca
dfb[[${98991*97996}]]xca
dfb__${98991*97996}__::.x
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
Đăng nhập để bình luận.
Đăng nhập Đăng ký