Post Go back to editing

Memory Usage

Thread Summary

The user reports excessive memory usage (2GB) in LTspice 26.1.1 under Windows 11, compared to 4MB in LTspice IV. The issue is a memory leak caused by the background image decoding, which is not freed. The fix will be in the next LTspice release, and restarting LTspice can mitigate the issue in the meantime.
AI Generated Content
Category: Software
Product Number: LTspice
Software Version: 26.1.1

LTSPICE 26.1.1 under Windows 11 uses ridiculous amounts of memory.  A single instance uses 2GB!!!

Out of curiosity I ran LTSPICE IV (the last version before Analog Devices bought Linear Technology and "improved" LTSPICE).  4MB.

How do you break something so bad that it uses 500 times more memory?  500 times!!!  I suppose it would be acceptable if the program were actually better but LTSPICE 26.1.1 is worse than LTSPICE IV in almost every conceivable way except that it has more ADI parts and is slightly more resistant to convergence failure.  It crashes constantly.  If you do an AC Analysis that spans more than a few decades the upper decade shows loss of precision errors (graph is noisy).

The only consolation is that it still isn't anywhere near as bad as TINA.

  • The problem is a memory leak.  Memory usage grows every time you open a file but doesn't shrink when you close that file.

  • Hi  ,

    We are aware of the memory leak and are debugging it. It appears to a very old problem, possibly predating LTspice iV. The order of magnitude has certainly increased, which seems loosely related to the way Windows allocates memory for windows.

    If you do an AC Analysis that spans more than a few decades the upper decade shows loss of precision errors (graph is noisy).

    Do you have an schematic we can test?

    Out of curiosity I ran LTSPICE IV (the last version before Analog Devices bought Linear Technology and "improved" LTSPICE).  4MB

    We will look into this as we approach the memory leak. I assume you are running both versions in Windows 11?

    mike 

    •  Analog Employees 
    on Nov 5, 2026 2:02 PM Contains AI Generated Content
    +1

    Hi  ,

    Thanks for reporting this. Your follow-up about memory growing every time a file is opened was the key clue: we've found the leak.

    Cause: It has nothing to do with simulation or the schematic itself. It's in the code that draws the background image of LTspice's main window (the picture you see when no document covers it). Every time that background is redrawn, LTspice decodes the image into a new bitmap of roughly 30 MB and never frees it. The background is redrawn when you open or close a file, resize or tile windows, or move another window over LTspice. So memory grows with every file you open or close, and over a long session it easily reaches the 2 GB you're seeing.

    This bug is at least as old as LTspiceXVII, which shows the same behavior. It has simply gotten more noticeable over time.

    We corrected this such that the image is decoded once and reused. Today, opening and closing an empty schematic adds about 58 MB each time. With the fix, memory stays flat at under 50 MB over repeated open/close cycles and redraws. The fix will be in the next LTspice release.

    Until then: The leaked memory is only freed when LTspice exits, so restarting LTspice from time to time keeps memory use down in long sessions.

    Best Regards,
    Mathias

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.