Top "Garbage-collection" questions

Garbage collection (GC) is a form of automatic memory management which attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

How to handle :java.util.concurrent.TimeoutException: android.os.BinderProxy.finalize() timed out after 10 seconds errors?

We're seeing a number of TimeoutExceptions in GcWatcher.finalize, BinderProxy.finalize, and PlainSocketImpl.finalize. 90+% of them happen on Android 4.3. We're …

android garbage-collection
Java 7 (JDK 7) garbage collection and documentation on G1

Java 7 has been out for a while now, but I cannot find any good resources on the configuration of the …

java garbage-collection java-7 heap-memory g1gc
How do you Force Garbage Collection from the Shell?

So I am looking at a heap with jmap on a remote box and I want to force garbage collection …

java garbage-collection jmx jmap
Best way to dispose a list

I am having List object. How can I dispose of the list? For example, List<User> usersCollection =new …

c# asp.net list garbage-collection dispose
When are Java temporary files deleted?

Suppose I create a temporary file in Java with the method File tmp = File.createTempFile(prefix, suffix); If I do …

java garbage-collection temporary-files
How to force JavaScript to deep copy a string?

I have some javascript code which looks like this: var myClass = { ids: {} myFunc: function(huge_string) { var id = huge_string.…

javascript google-chrome memory-management garbage-collection
Python garbage collector documentation

I'm looking for documents that describes in details how python garbage collection works. I'm interested what is done in which …

python garbage-collection
Default garbage collector for Java 8

What is the default garbage collector for Java 8? When I check the JMX Beans, they reveal it to be the …

java garbage-collection java-8
Is explicitly closing files important?

In Python, if you either open a file without calling close(), or close the file but not using try-finally or …

python file garbage-collection
UseConcMarkSweepGC vs UseParallelGC

I'm currently having problems with very long garbage collection times. please see the followig. My current setup is that I'm …

java performance garbage-collection g1gc concurrent-mark-sweep