Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    $\begingroup$ It will be very difficult to give any concrete and useful suggestions without your actual code that you are using. It might be a memory leak in some function. $\endgroup$ Commented Jan 9, 2024 at 10:56
  • $\begingroup$ @Domen thanks for replying. Code is really long and will not be understood. I use like 10 modules and I read that Modules can cause memory leaks. However my code ran in loop to iterate with a pause. Every iteration the RAM builds up, but I do not understand why clearing up all my variables and functions still keeps compressed RAM. Any general tip? $\endgroup$ Commented Jan 9, 2024 at 11:07
  • 5
    $\begingroup$ In your case, I would try to determine first which block of the code is the problematic one. Try to divide your code into separate blocks, test each one, use MemoryInUse[] to locate the problem ... $\endgroup$ Commented Jan 9, 2024 at 11:53