Memory leak in the Win64 Delphi RTL during thread shutdown?
A very simple work around is to re-use the thread and not create and destroy them. Threads are pretty expensive, you’ll probably get a perf boost too… Kudos on the debugging though…
A very simple work around is to re-use the thread and not create and destroy them. Threads are pretty expensive, you’ll probably get a perf boost too… Kudos on the debugging though…
You definitely want to have a look at the garbage collection. Unlike some programming language like C/C++ where the programmer has to free dynamically allocated memory by himself when the space is no longer needed, python has a garbage collection. Meaning that python itself frees the memory when necessary. When you use some_matrix = None, … Read more
ASP.NET Core can appear to use more memory than it should because it’s configured to use Server GC by default (as opposed to Workstation GC). For a discussion of a similar concern see here. In theory, the application should be able to reduce its memory footprint when your server faces a memory pressure. More on … Read more
While I am not familiar with Haskell daemon itself, answering your question “how it’d be possible to more effectively pinpoint such a leak”, it might be possible to use valgrind –leak-check=yes haskelldaemon (better if you compile it with debug info), OR, if the leak happens in shared library, try LD_PRELOAD=”yourlibrary.so” valgrind your-executable.
You’re not keeping the element you’ve created around and referenced anywhere – that’s why you’re not seeing the memory usage increase. Try attaching the element to the DOM, or store it in an object, or set the onclick to be a different element that sticks around. Then you’ll see the memory usage skyrocket. The garbage … Read more
If Papertrail is causing a problem, try a different add on. I’ve been using LogEntries without much of a problem. https://addons.heroku.com/#logging Also try to lower your Unicorn worker processes so it uses lower total memory. Instead of the default of 3 (per box/dyno), try 2. https://devcenter.heroku.com/articles/rails-unicorn#unicorn-worker-processes You can also run a memory profiler on your … Read more
Private bytes reflect the process’ memory usage. When objects are collected the associated memory segment may or may not be freed to the OS. The CLR manages memory at the OS level and since allocating and freeing memory isn’t free there’s no reason to free each piece of memory immediately as chances are that the … Read more
It’s almost impossible without some understanding of the underlying code. If you understand the underlying code, then you can better sort the wheat from chaff of the zillion bits of information you are getting in your heap dumps. Also, you can’t know if something is a leak or not without know why the class is … Read more
WCF automatically generates serialization classes in memory for some communication protocols, mostly for XML communication, and seems to create a different class for each possible variation in the message structure; this easily explains the number of assemblies. This behavior is apparently normal for XML-based WCF protocols. If you have control over the protocol, switching to … Read more
The main cause for the java.lang.OutOfMemoryError: Metaspace is: either too many classes or too big classes being loaded to the Metaspace. If you want to recreate the problem use this code snippet: public class Metaspace { static javassist.ClassPool cp = javassist.ClassPool.getDefault(); public static void main(String[] args) throws Exception { for (int i = 0; ; … Read more