www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21894] New: Memory leak in DMD semantic server.


          Issue ID: 21894
           Summary: Memory leak in DMD semantic server.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: blatblatnik gmail.com

Created attachment 1822
  --> https://issues.dlang.org/attachment.cgi?id=1822&action=edit
Using 10GB after only 5 minutes of running VisualD.

Even in a smallish project (~5000 lines), the semantic server eats up an
absolute shedload of RAM. It makes my machine unusable.

There seems to be no limit to the amount of memory it uses, I've had it as high
as 10GB (see attachment).

There's a memory leak (or 20) in there somewhere.

This doesn't always happen. Sometimes it can go for hours and never use more
than 500MB (which is still not great, but is at least acceptable for me). But
more often than not, there seems to be some sort of "inflection point" after
which the memory usage just grows very quickly and doesn't drop back.

Please let me know how I can help track this down and solve it. It's extremely
important to me that this gets resolved. Right now I have to restart visual
studio every 2 hours because of this.

May 05 2021