-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory is growing up to 2-4GB after some time - how to debug? #3614
Comments
Mine was just using like 40GB. And has been unresponsive a lot lately. :( |
I wonder if this is related to #3565. I've downgraded to |
It's interesting, I hadn't seen this issue previously, but I am starting to run into #3652 which could be related. |
There aren't a lot of places where we could be leaking RAM. One would be Lua itself, although all of those objects ought to be tiny, the other would be things like the hammerspoon console's scrollback. Beyond that it's possible we do have a leak bug somewhere which your configurations are hitting particularly badly. Unfortunately none of these are particularly easy to track down with some kind of runtime dump of objects, so we'll need to try and isolate what's triggering it, and dig into that. If anyone is feeling adventurous, and ideally also experiencing this a lot, narrowing down your config to the smallest possible setup that triggers it, would be super helpful. |
Hopefully this will be somewhat improved by the same merge that mitigates #3565 |
FWIW - I haven't had anyone report issues in CommandPost, so must be something specific in a config I think. |
maybe related to this: at least there are debugging tips using activity monitor:
|
Is there any short way to see what is the cause of this increasing memory? When I (re)start Hammerspoon it is around 160MB - but growing up to 2-4GB
In some form to print out current memory usage of hammerspoon in the console?
or something else to see what is the reason?
can I somehow dump the used memory of hammerspoon to see which objects are still exisiting and not garbage collected?
The text was updated successfully, but these errors were encountered: