About 101,000 results
Open links in new tab
  1. Java garbage collector - When does it collect? - Stack Overflow

    Oct 17, 2009 · The garbage collector can use the hint or ignore it, in my experience it can be the difference between an application server that runs smoothly and one that is unresponsive …

  2. What is the garbage collector in Java? - Stack Overflow

    Sep 26, 2010 · I am confused about the garbage collector in Java. What does it actually do and when does it comes into action? Please describe some of the properties of the garbage …

  3. garbage collection - Java heap terminology: young, old and …

    I'm trying to understand What the concepts of young, old and permanent generations are in the Java heap terminology, and more specifically the interactions between the three generations. …

  4. garbage collection - Error java.lang.OutOfMemoryError: GC …

    Sep 8, 2009 · 253 Quoting from Oracle's article "Java SE 6 HotSpot [tm] Virtual Machine Garbage Collection Tuning": Excessive GC Time and OutOfMemoryError

  5. How to force garbage collection in Java? - Stack Overflow

    Sep 26, 2009 · Is it possible to force garbage collection in Java, even if it is tricky to do? I know about System.gc(); and Runtime.gc(); but they only suggest to do GC. How can I force GC?

  6. How to prevent an object from getting garbage collected?

    10 The trick answer your interviewer was looking for is probably that he wants you to know that you can prevent garbage collection from removing an object by forcing a memory leak. …

  7. garbage collection - Java GC (Allocation Failure) - Stack Overflow

    Feb 5, 2015 · Java GC (Allocation Failure) Asked 10 years, 9 months ago Modified 1 year, 8 months ago Viewed 337k times

  8. garbage collection - How to free memory in Java? - Stack Overflow

    Oct 14, 2009 · Is there a way to free memory in Java, similar to C's free() function? Or is setting the object to null and relying on GC the only option?

  9. How is the java memory pool divided? - Stack Overflow

    Heap memory The heap memory is the runtime data area from which the Java VM allocates memory for all class instances and arrays. The heap may be of a fixed or variable size. The …

  10. Why would one manually request garbage collection in Java?

    Feb 23, 2011 · Java automatically calls garbage collector, then why we need manual calls for garbage collection? When should use System.gc()