Closed setharnold closed 3 years ago
Thanks for the report! This is a duplicate of #682.
(In the mean time, my recommendation is to restart Matterhorn more often.)
@setharnold Since you mentioned the exact version, do you see this behavior with the official builds that we publish?
I haven't tried the 'official builds'; for all I gripe about snap, it's super-easy for me to use the snap builds. I could certainly try the official builds if it'd give us useful data or better debugging etc.
Okay, thanks. I don't think that's going to be necessary. I just asked because we haven't been able to reproduce the problem, and I wanted to be sure there wasn't something super different about your build. Granted, if you're using the Snap build, I have no idea what version of GHC is being used to make that build, but while that is an unknown I really doubt it has the potential to cause the memory behavior you're seeing. Also, enough other people have reported this that unless they all happen to be running the Snap build, I wouldn't suspect that.
(Also, a user who was able to do a profiling build of Matterhorn still had this problem and thus wasn't using the Snap build, so that is the main evidence I have against worrying about the Snap version.)
There may be some hints in the executable itself:
$ strings /snap/matterhorn/259/app/matterhorn | grep -i ghc
/root/.cabal/lib/x86_64-linux-ghc-8.6.5/matterhorn-50200.13.0-inplace
/root/.cabal/lib/x86_64-linux-ghc-8.6.5
/root/.cabal/share/x86_64-linux-ghc-8.6.5/matterhorn-50200.13.0
/root/.cabal/libexec/x86_64-linux-ghc-8.6.5/matterhorn-50200.13.0
/root/.cabal/lib/x86_64-linux-ghc-8.6.5/mattermost-api-50200.11.0-inplace
/root/.cabal/share/x86_64-linux-ghc-8.6.5/mattermost-api-50200.11.0
/root/.cabal/libexec/x86_64-linux-ghc-8.6.5/mattermost-api-50200.11.0
...
GHC 8.6.5
My guess, skimming the build recipe, is that it's using the ghc package from Ubuntu 20.04, with the confusing version string 8.8.1+dfsg1+is+8.6.5+dfsg1-3
.
Thanks! Gotta love distribution package re-versioning. 😊
Yeah! There's nothing quite like seeing a small mistake seared into version strings for the next ten years... Oh well. :)
Hello, matterhorn is my largest memory consumer at the moment:
Eight gigabytes of memory feels like quite a lot for a text-based chat application. (For comparison, my irssi connected to five or six irc networks, over a hundred windows, with vastly more traffic than my work-only matterhorn, is running on a VM with a total of 512M memory.)
This process was 22 days old, running version:
Thanks