Skip to main content
2 votes
1 answer
80 views

I have a Python function that consumes a large amount of memory. When the function finishes, I want to release the memory and return the freed pages to the operating system by calling malloc_trim(0). ...
pixeldrift's user avatar
24 votes
2 answers
2k views

In JavaScript, when you do something like this, function connect() { var ws = new WebSocket(url); ws.onmessage = function(e) { window.alert(e.data); }; } it will work. But why ...
Maestro's user avatar
  • 9,876
0 votes
2 answers
170 views

I have a .Net 4.7 application (WPF) whose memory consumption increases to 5.785 GB in private bytes, but the heap bytes are 4.260 GB, as shown in the figure taken by Process-Explorer: If I run GC ...
james james's user avatar
0 votes
1 answer
152 views

I am currently working on a .NET 9 WinForms program that contains an ImageViewer, which is a seperate window where you can scroll through a series of images. My problem is that even after closing the ...
Joelbu's user avatar
  • 144
2 votes
1 answer
171 views

In the following JavaScript, does the object destructuring that follows the creation of target create a new (temporary) object that has to be garbage collected? In other words, are there two objects ...
user3163495's user avatar
  • 3,968
1 vote
1 answer
81 views

This question tries to collect the full picture if/when a stale object reference can happen from an old-gen (immutable) array referring a newer-gen object, from fragments of information. Preface: was ...
ron's user avatar
  • 9,458
0 votes
0 answers
47 views

I am using h2o-3 java repo to load this frame but have been running into memory issues with constant GC pressure. The actual frame size is 3.31 GB as per h2o logs, but the peak JVM usage comes to be ...
Monil Patel's user avatar
2 votes
1 answer
89 views

I have some code similar to this: class Foo { var x = 0 init { GlobalScope.launch { while (true) { delay(1000) x += 1 }...
Seggan's user avatar
  • 216
2 votes
1 answer
176 views

I am trying to do some linear algebra in Kotlin/JVM and I have two ways of doing it: Using Apache commons-math, which implements matrix multiplication purely on the JVM Using OpenCV's Mat class and ...
vatbub's user avatar
  • 3,196
0 votes
2 answers
108 views

My company is finally starting to introduce unit tests. While going through some of the new tests, I came across this one: [Test] public void GetCorrectTimeoutInfoFromTimeSpan() { // Arrange ...
MaxH's user avatar
  • 75
2 votes
2 answers
576 views

I am performing operations on a directed acyclic graph (DAG) of DataFrames using Polars (eager API). Here’s a simplified example of my workflow: Read parquet files into df1. Use df1 to create df2 and ...
Deep Ghodasara's user avatar
1 vote
1 answer
59 views

I'm looking for some code or some benchmark to roughly asses the pause times or cpu load caused by some GC in order to get some rough estimate how efficient it is. I just want to see whether some GC ...
OlliP's user avatar
  • 1,607
1 vote
0 answers
96 views

I'm trying to migrate our application from .NET Framework to .NET Core. In one of our tests, an object of type ZWebBrowser : System.Windows.Forms.WebBrowser is not garbage collected correctly, due to ...
VEvergarden's user avatar
1 vote
2 answers
95 views

I'm calling global.gc() in some unit tests, but for some reason it only seems to have any impact when called synchronously. If I call it asynchronously, I never seem to get a cleanup callback in my ...
lucas's user avatar
  • 2,055
0 votes
1 answer
150 views

I am seeing the below in the GC log before the JVM pauses for several minutes after which it gets restarted externally. [2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Metaspace (data) ...
lmk's user avatar
  • 778

15 30 50 per page
1
2 3 4 5
819