Results 1 to 3 of 3
  1. #1
    Katanagas is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Question In defense of the Garbage Collector

    Hi,

    Some of our users have begun tracking the memory usage by the JVM via task manager in windows for one of our processes.

    They don't understand the concept of garbage collection, advantages and disadvantages, particularly, the speed at which short-lived objects can be allocated and de-allocated. They just see the overall process memory growing and hardly decreasing anymore and some assume there is a problem.

    I was about to post something on our internal wiki, when I realized that there must be good articles written already.

    What is your favorite (not too technical article) "in defense of the Garbage Collector"?

    I could look up something from Doug Leah or one of those guys, but it will be too hard for a non-programmer to follow. I found this which I thought was simple enough, but not too inspiring : Garbage collection (computer science) - Wikipedia, the free encyclopedia

    Google has returned too many hits and not enough quality on this. I am hoping someone can share their favorites from a well known source.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Thanks for sharing.

    Each have its own pros and cons. ;) More importantly, even Java GC automatically free-up the heap it's not guaranteed that to perform the action all the time.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,571
    Blog Entries
    7
    Rep Power
    21

    Default

    Maybe you like the articles written by Hans Boehm about his own garbage collector writen for C and C++; it also applies to Java's garbage collector. It mentions some details as well as the pros and cons of garbage collection.

    kind regards,

    Jos

Similar Threads

  1. Garbage Collector Doubt
    By CristOm in forum New To Java
    Replies: 9
    Last Post: 05-04-2010, 11:26 AM
  2. Q about Garbage Collector
    By m00nchile in forum New To Java
    Replies: 4
    Last Post: 02-05-2010, 05:57 AM
  3. Garbage Collector and finalize()
    By arefeh in forum New To Java
    Replies: 5
    Last Post: 01-09-2010, 09:04 PM
  4. Garbage collector and its impacts
    By RadhaJayalakshmi in forum Advanced Java
    Replies: 1
    Last Post: 07-23-2008, 11:56 AM
  5. Interacting with the Java Garbage Collector
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-28-2008, 08:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •