Is there a destructor for Java?

Is there a destructor for Java? I don't seem to be able to find any documentation on this. If there isn't, how can I achieve the same effect? To make my question more specific, I am writing an...

How can I use FastMM4 memory leak reporting in a Service?

Does the same technique which FastMM4 for Delphi provides to report memory leaks to a detailed file work if the application runs as service? Of course the best practice would be to write unit...

How to use Application Verifier to find memory leaks

I want to find memory leaks in my application using standard utilities. Previously I used my own memory allocator, but other people (yes, you AlienFluid) suggested to use Microsoft's Application...

ClassLoader Leak - Are they worth solving?

ClassLoader leaks usually result in java.lang.OutOfMemoryError: PermGen. In the instance of working on application servers you may see this as a result of many redeploys of a common application. ...

memory leak problems

I used _CRTDBG_MAP_ALLOC and put _CrtDumpMemoryLeaks() at the program exit to detect memory leak, and got the following memory leak report: Detected memory leaks! Dumping objects...

What can cause section handle leaks?

This is a follow-up question to my previous question. As suggested in this answer to my previous question, I used ProcessExplorer to analyze a list of handles that my application is using to find...

Memory problems with JavaScript + CSS3 animations. How to improve?

I have created a loop of animations. Once one animation is finished, it triggers next one and so on. Seems that when I keep my browser open for 1-2 minutes, it starts to slow down and eating more...

How do I access memory from one program in another

I have a closed-source 3rd party program, and I want to be able to Know what memory is allocated to the program Access that memory (read only is fine) Utilities like vmmap(1), heap(1), and...

What is the best/standard addEventListener workaround for IE that handles memory leaks?

During my extensive research, I have seen many workarounds handling this issue. (See this SO post for some good links.) My main concern is handling the memory leaks that come from using...

shared_ptr for a raw pointer argument

When the function requires a char*, can you pass in a shared_ptr? I'm reading in a whole text file (length = 100), and want to store the char's into a char[] array. The naive way I used was...

Options for embedding Chromium instead of IE WebBrowser control with WPF/C#

Updated for 2020, I've linked my article where I compare the memory footprints of different approaches to hosting HTML WebView in a basic Windows Desktop application: MSEdge WebView2...

Can bindings create memory leaks in WPF?

Do I need to unbind items as the item disappears in order to prevent memory leaks? I guess I'm just a little worried that if I reload and a new template is applied to a control, and in that...

Binding to list causes memory leak

When I bind an ItemsSource of a ListBox to a List the binding engine holds on to the list elements after the control is gone. This causes all the list elements to stay in memory. The problem goes...

Android: Realm + Retrofit 2 + Gson

I have a problem when using Retrofit + Gson and Realm. I know that there is an issue with the combination of these 3 libraries. Some answers suggest that setting an ExclusionStrategy for Gson can...

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

Do you need to unsubscribe from Angular 2 http calls to prevent memory leak? fetchFilm(index) { var sub = this._http.get(`http://example.com`) .map(result => result.json()) ...

Why is Internal memory in java Native Memory Tracking increasing

My application is running in a docker container, it use scala and use "OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)", its Xmx is set to be 16GB and container memory limit is 24Gb, after...

Threads are going to be renewed over time to try and avoid a probable memory leak

I try to deploy my war file. But after success deployment. I get this log: [[email protected] bin]# export JAVA_HOME="/usr/java/jdk1.8.0_112/" [[email protected]]# ./startup.sh Using CATALINA_BASE: ...

A lot of java.util.zip.ZipFile$ZipFileInputStream objects/ Same jars loaded multiple times

I am checking a heap dump of an Tomcat application which tends to crash when it has increased load right after startup. During the crash I observe an increasing number of unsuccessful attempts to...

RStudio crashing with RcppGSL function

I am working on speeding up one of my R programs, that solves a vector of score equations, with Rcpp. Since intermediate steps in computing these score equations require interpolation and...

LiveData prevent receive the last value when start observing

Is it possible to prevent LiveData receive the last value when start observing? I am considering to use LiveData as events. For example events like show message, a navigation event or a dialog...

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main...

Does CSS3 animation create memory leaks?

http://jsfiddle.net/q5yncg61/ .vertical-line { /* will-change: transform; */ stroke-dasharray: 2; -webkit-animation: dash 25s infinite linear; animation: dash 18s infinite...

How to increase EsLint memory to avoid `JavaScript heap out of memory`?

I'm trying to run EsLint on a very large javascript file and the process is running out of memory. To give you an idea of how big the file is I ran Cloc on it and here's the output: $ cloc app.js...

Java - Internal Native Memory usage is too high

What is the Internal Native Memory in Java, and how can i limit it? I'am using the one of popular java application, like tomcat, but i have problem with very high memory usage, after few hours. I...

IIS Worker Process has High Memory Usage for Identical Sites on Same server

I have two .NET 4.6.1 MVC web applications, with identical code, that are running on IIS 10.0.14393.0 on Windows Server 2016. When viewing the worker process in IIS, the memory is around 150mb...

How can I do memory profiling for a cgo library (Go library wth bindings to C library)?

I have a go program which does image processing using govips, a Go library which provides cgo bindings to libvips. How do I find out what's using memory here in which way? I'm 99% sure the actual...

How to batch an IAsyncEnumerable<T>, enforcing a maximum interval policy between consecutive batches?

I have an asynchronous sequence (stream) of messages that are arriving sometimes numerously and sometimes sporadically, and I would like to process them in batches of 10 messages per batch. I also...

im trying to use hashcat on a hash from hackthebox with rule and i get the output of Exhausted every time

The hash is an SHA1 hash that i need to append 2020 to the end of each password: The rule.txt file input is: "$2 $0 $2 $0" The command: hashcat -a 0 -m 100 hash.txt...

Avoid memory fragmentation when memory pools are a bad idea

I am developing a C++ application, where the program run endlessly, allocating and freeing millions of strings (char*) over time. And RAM usage is a serious consideration in the program. This...

Efficient type punning without undefined behavior

Say I'm working on a library called libModern. This library uses a legacy C library, called libLegacy, as an implementation strategy. libLegacy's interface looks like this: typedef uint32_t...