You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node --max-old-space-size=18000 .
와 같이 사용 가능 메모리 양을 늘려 주시면 해결은 가능합니다.
위의 세팅 값은 메모리 16기가 기준으로 운영체제 구동 메모리를 제외하고 여유롭게 잡아놓은 값입니다.
그러나, 장기간 재부팅 없이 길이가 긴 영상을 많이 재생했을 경우에는 ytdl-core의 고질병인 메모리 누수로 인해 메모리 사용량이 기하급수적으로 늘어날 수 있습니다.
해결하기 위해 LavaPlayer를 이용한 다른 뮤직봇 프로젝트를 개발하고 있으나 시간이 어느 정도 걸릴 것 같고요.
Lavaplayer와 같은 ytdl-core 외의 다른 모듈을 이용해서 처음부터 개발하지 않은 이유는 초기 세팅이 너무 복잡해져서
누구나 사용하기 어렵다고 판단하였기 때문입니다.
30분 이상 영상을 재생시킬 시 30분 뒤 노래가 끊기며 통화방으로 나가는 현상이 나옵니다.
모듈문제일까요?
The text was updated successfully, but these errors were encountered: