Java GC (Allocation Failure)

“Allocation Failure” is a cause of GC cycle to kick in. “Allocation Failure” means that no more space left in Eden to allocate object. So, it is normal cause of young GC. Older JVM were not printing GC cause for minor GC cycles. “Allocation Failure” is almost only possible cause for minor GC. Another reason … Read more

Why cannot the JVM auto expand heap memory to the configured Xmx3072m in linux & jdk1.6.0_32, and FullGC occurs very frequently

The RES value isn’t how much memory the process is using, but how much actual RAM it uses. This doesn’t include swapped pages and allocated but unmapped pages. Make sure you have enough free memory on the system itself, you can run free, or even top should print above how much memory is in use. The output of top suggests that the … Read more

Where Is Machine.Config?

32-bit 64-bit [version] should be equal to v1.0.3705, v1.1.4322, v2.0.50727 or v4.0.30319. v3.0 and v3.5 just contain additional assemblies to v2.0.50727 so there should be no config\machine.config. v4.5.x and v4.6.x are stored inside v4.0.30319.

Does C++ have a Garbage Collector?

Native C++ by default has no such thing (the closest thing to this are the smart pointers, but that’s still something entirely different), but that doesn’t prevent you from writing your own garbage collection solution (or using third party solution). Managed C++ (and its successor C++/CLI) of course use .NET garbage collection for managed resources (though … Read more

Why doesn’t C++ have a garbage collector?

Implicit garbage collection could have been added in, but it just didn’t make the cut. Probably due to not just implementation complications, but also due to people not being able to come to a general consensus fast enough. A quote from Bjarne Stroustrup himself: I had hoped that a garbage collector which could be optionally … Read more