Skip to content
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 Leak When Company is Enabled #623

Closed
Shinmera opened this issue Dec 18, 2016 · 3 comments
Closed

Memory Leak When Company is Enabled #623

Shinmera opened this issue Dec 18, 2016 · 3 comments
Labels

Comments

@Shinmera
Copy link

Shinmera commented Dec 18, 2016

I've noticed that in recent months Emacs started to massively accumulate memory over a couple of hours of use. It goes up to 10 Gigabytes, despite me not having many buffers open, or doing much out of the ordinary. It also starts to slow down to an absolute crawl, at which point typing a single key takes more than a second to show up. This only happens when I have company enabled.

I'm not sure what to do to track down a more specific cause of the leak. Any pointers for this would be appreciated immensely. Since it takes a rather long while to notice whether the leak is actually really in effect while using Emacs normally, I can't feasibly just test lots of different configurations, though.

Here are the settings from my dotfiles that are are directly relevant to company:

(require 'company)
(require 'slime-company)

(company-quickhelp-mode 1)
(setq company-quickhelp-delay 0.5)
(add-hook 'after-init-hook 'global-company-mode)

(define-key company-active-map (kbd "<up>") 'company-select-previous)
(define-key company-active-map (kbd "<down>") 'company-select-next)
(define-key company-active-map (kbd "\C-n") 'company-select-next)
(define-key company-active-map (kbd "\C-p") 'company-select-previous)
(define-key company-active-map (kbd "\C-d") 'company-show-doc-buffer)
(define-key company-active-map (kbd "M-.") 'company-show-location))

I'll be happy to try out a few things if anyone has an idea on how to proceed.

@dgutov
Copy link
Member

dgutov commented Dec 18, 2016

Have you tried a bare configuration? Just emacs -Q plus company-mode? Does it have a similar effect over a couple of hours?

If you M-x report-emacs-bug, you might get some better suggestions toward investigating the leak.

@Shinmera
Copy link
Author

I haven't tried that, since it makes emacs rather cumbersome to use for my work. I'll see what I can do, though.

@dgutov
Copy link
Member

dgutov commented Feb 26, 2018

This isn't going anywhere, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants