Rigtch / rigtch-fm-api

Real time spotify statistics calculation based on your listening history.
https://rigtch-fm-api.up.railway.app/api
Apache License 2.0
9 stars 0 forks source link

fix memory leaks #336

Open Mnigos opened 1 month ago

Mnigos commented 1 month ago

https://www.netguru.com/blog/node-js-memory-leaks

Mnigos commented 1 month ago

https://github.com/lloyd/node-memwatch

Mnigos commented 1 month ago

https://github.com/OptimalBits/bull/issues/1194

Mnigos commented 1 month ago

The issue might be related with delayed jobs. Getting back to manually setting intervals and them clearing them might resolve this issue.

Mnigos commented 1 month ago

try migrate to bullmq https://github.com/OptimalBits/bull/issues/1110#issuecomment-568883963

Mnigos commented 1 month ago

Some of memory leaks might caused by HistoryTracksService.create method.

Mnigos commented 1 month ago

https://github.com/typeorm/typeorm/issues/8267

Mnigos commented 1 month ago

setup AppSignal

https://appsignal.com