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.

Does SqlCommand.Dispose close the connection?

Can I use this approach efficiently? using(SqlCommand cmd = new SqlCommand("GetSomething", new SqlConnection(Config.ConnectionString)) { cmd.Connection.Open(); // set …

.net garbage-collection dispose sqlconnection sqlcommand
Is it necessary to explicitly remove event handlers in C#

I have a class that offers up a few events. That class is declared globally but not instanced upon that …

c# garbage-collection event-handling
When should I use delete vs setting elements to null in JavaScript?

Possible Duplicate: Deleting Objects in JavaScript I have a JS object having a large number of properties. If I want …

javascript garbage-collection
Does garbage collector call Dispose()?

I thought the GC would call Dispose eventually if your program did not but that you should call Dispose() in …

c# .net memory dispose garbage-collection
Why Large Object Heap and why do we care?

I have read about Generations and Large object heap. But I still fail to understand what is the significance (or …

.net garbage-collection clr large-object-heap
Does assigning objects to null in Java impact garbage collection?

Does assigning an unused object reference to null in Java improve the garbage collection process in any measurable way? My …

java null garbage-collection
What is the meaning of the -XX:NewRatio and -XX:OldSize JVM flags?

I am starting my java app with the following command line : java -XX:+PrintCommandLineFlags -verbose:gc -XX:+PrintGCDetails \ -XX:+UseConcMarkSweepGC …

java memory garbage-collection options flags
Configuring v8's memory management to be smart for a node.js process

We run an XMPP server on node.js, on a machine with around 3.8 GB RAM. Here are the command line …

node.js memory-management garbage-collection v8
Why does the JVM full GC need to stop-the-world?

I was asked this question, and I just answered "because the JVM needs to move objects", but later I Googled …

garbage-collection jvm
Whole team gets 'too many unreachable loose objects' messages

Not long ago, we have made the switch from SVN to Git. A few days ago, I realized that all …

git garbage-collection gitlab