Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 254 forks source link

Memory leak with rdm polling? #1372

Open mukulrao opened 4 years ago

mukulrao commented 4 years ago

Describe the bug RDM eats up memory incrementally and exceeds 80% of my system RAM.

To Reproduce Steps to reproduce the behavior:

  1. Start RDM on centos7
  2. rc -J with compilation commands from some large project
  3. rdm seems to eat 500 - 1000 bytes of resident memory every few seconds
  4. Running strace on the process shows that is just running epoll_wait, not sure what it is doing in the backgroud that causes it to pile up memory

Expected behavior After indexing is complete, I would have expected only a marginal increase in memory based on caching

Screenshots/Backtrace Attached

Environment (please complete the following information):

Additional context Screenshot from 2020-02-13 11-11-16

Just loading the compilation commands through rc and doing nothing eats up memory steadily. The process is accelerated when I actually use rtags-* commands in emacs.