commentoplusplus icon indicating copy to clipboard operation
commentoplusplus copied to clipboard

Memory leak?

Open ncoleman opened this issue 5 years ago • 3 comments

Over about ten to twelve days, RSS size went from around 30M to over 120M with no comments processed. I'm running a cloned copy of this repo, straight without using docker. It could be upstream's issue or yours, you're in a better position to judge I imagine, but I'm reporting it here since it is this version I'm running.

ncoleman avatar Jul 11 '20 09:07 ncoleman

Thanks for the report! I will try and do some profiling to figure out what is being left open.

souramoo avatar Dec 27 '20 03:12 souramoo

If it's possible, please could you capture commento's heap by using the latest commit, the dev version (make devel rather than make prod) and then curl http://<server>/debug/pprof/heap after the potential memory leak and email it to me?

(or if you're feeling adventurous, go tool pprof <heap_file> and running top20 or similar to visualise where the memory is going - https://medium.com/dm03514-tech-blog/sre-debugging-simple-memory-leaks-in-go-e0a9e6d63d4d)

This should help narrow down exactly what's causing this issue :)

souramoo avatar Dec 27 '20 04:12 souramoo

Hi! Just wondered if you had any updates on this issue? :)

souramoo avatar Mar 15 '21 08:03 souramoo