Why is IE11 “Total memory” so much larger than heap snapshot size?

Note: Microsoft has publicly disowned IE, but it is still relevant when testing what happens if a webpage is viewed with the Microsoft web browser on an older Windows version that wasn’t bundled with Edge. In Win32 in general (IE is part of Win32, but possibly with its own differences), total memory use includes memory … Read more

How does a reference-counting smart pointer’s reference counting work?

I’ve seen two different non-intrusive approaches to this: The smart pointer allocates a small block of memory to contain the reference counter. Each copy of the smart pointer then receives a pointer to the actual object and a pointer to the reference count. In addition to an object pointer, each smart pointer contains a previous … Read more

Is it necessary to unsubscribe from observables created by Http methods to avoid memory leaks?

So the answer is no, you don’t. Ng2 will clean it up itself. The Http service source, from Angular’s Http XHR backend source: Notice how it runs the complete() after getting the result. This means it actually unsubscribes on completion. So you don’t need to do it yourself. Here is a test to validate: fetchFilms() … Read more

Where dump is dumped, using HeapDumpOnOutOfMemoryError parameter for JBoss

Here’s what Oracle’s documentation has to say: By default the heap dump is created in a file called java_pid.hprof in the working directory of the VM, as in the example above. You can specify an alternative file name or directory with the -XX:HeapDumpPath= option. For example -XX:HeapDumpPath=/disk2/dumps will cause the heap dump to be generated … Read more

How to reduce/remove memory leaks in Angular application

Remove bindings to avoid memory leaks, Use Scopes $destroy() Method. Note: The most likely culprit of memory leak in Angular is JQuery used in your directives. If you attach an event-listener in your directive using a JQuery plugin, the latter would keep a reference to your DOM even after Angular deletes its own reference to … Read more

Techniques for profiling memory in Safari desktop and iOS?

When you install the iOS SDK, a utility named Instruments is also installed. It can track all sorts of usage stats, including memory (there is even a “Leaks” template). The great thing is that it can track both the iPhone/iPad simulator and any connected iOS development device. It also, of course, can be used to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)