Skip to main content

Diigo Home

Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine - The Diigo Meta page

java.sun.com/...gc_tuning_5.html - Cached

This link has been bookmarked by 47 people . It was first bookmarked on 11 Jul 2006, by Alex Choi.

  • 27 Dec 09
  • 17 Dec 09
    • The JavaTM 2 Platform Standard Edition (J2SETM platform) is used for a wide variety of applications
      from small applets on desktops to web services on large servers. In the J2SE
      platform version 1.4.2 there were four garbage collectors from which to choose
      but without an explicit choice by the user the serial garbage collector was
      always chosen. In version 5.0 the choice of the collector is based on the class
      of the machine on which the application is started.
    • This “smarter choice” of the garbage collector is generally better but is not
      always the best. For the user who wants to make their own choice of garbage
      collectors, this document will provide information on which to base that choice.
      This will first include the general features of the garbage collections and
      tuning options to take the best advantage of those features. The examples are
      given in the context of the serial, stop-the-world collector. Then specific
      features of the other collectors will be discussed along with factors that
      should considered when choosing one of the other collectors.
  • 23 Nov 09
    • Documentation

      Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine

  • 09 Sep 09
    • options affecting sizing
  • 18 Jun 09
      • e goal of ergonomics is to provide good performance
        from the JVM with a minimum of command line tuning. Ergonomics
        attempts to match the best selection of



        • Garbage collector



        • Heap size



        • Runtime compiler

    • Garbage collectors make assumptions about the way applications use
      objects, and these are reflected in tunable parameters that can be
      adjusted for improved performance without sacrificing the power of
      the abstraction
    • 29 more annotations...
  • 17 Jun 09
  • 14 May 09
    vivek_saini07
    vivek saini

    he lifetimes of objects.

    jvm gc garbage collection

    • he uncommitted space is labeled
      "virtual" in this figure.
    • The throughput collector uses multiple threads to
      execute a minor collection
    • 1 more annotations...
  • 30 Mar 09
  • 12 Dec 08
    • The permanent
      generation
      is special because it holds data needed by the
      virtual machine to describe objects that do not have an equivalence
      at the Java language level.
    • For example objects describing classes
      and methods are stored in the permanent generation
    • 1 more annotations...
  • 09 Dec 08
    slipchenko_serg
    Serge Slipchenko

    Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine

    Garbage_Collection Java

  • 07 Oct 08
  • 05 Oct 08
    • To optimize for this scenario, memory is managed in generations,
      or memory pools holding objects of different ages. Garbage collection
      occurs in each generation when the generation fills up.
    • When the tenured generation needs to be
      collected there is a major collection that is often much
      slower because it involves all live objects.
    • 9 more annotations...
  • 03 Oct 08
  • 28 Jul 08
    • 5.1 When to
      Use the Throughput Collector


      Use the throughput collector when you want to improve the
      performance of your application with larger numbers of processors.

  • 26 Jun 08
  • 06 May 08
    sriks6711
    Srikant Jakilinki

    with the 5.0 Java[tm] Virtual Machine

  • svenouille
    sven duzont

    java,garbage collector,tuning











    java garbage collector tuning

  • 30 Apr 08
  • 16 Oct 07
    ehsavoie
    Emmanuel Hugonnet

    Tuning Garbage Collection with the 5.0 JavaTM Virtual Machine: memory model for Java

    jdk1.5 reference performance

  • 28 Aug 07
  • 09 Aug 07
  • 30 Jul 07
  • 26 Jul 07
  • 02 Jul 07
    • Efficient collection is made possible by focusing on
      the fact that a majority of objects "die young".
    • Use the concurrent low pause collector if your application
      would
      benefit from shorter garbage collector pauses and can afford to share
      processor resources with the garbage collector when the application
      is running. Typically applications which have a relatively large set
      of long-lived data (a large tenured generation), and run on
      machines with two or more processors tend to benefit from the use of
      this collector.
  • 25 Apr 07
  • 24 Jan 07
    • serial
  • 12 Dec 06
  • 21 Nov 06
  • 02 Nov 06
    • -XX:+PrintGCTimeStamps
  • 28 Sep 06
    • -XX:MinHeapFreeRatio=




      40










      -XX:MaxHeapFreeRatio=




      70





      -Xms




      3670k





      -Xmx




      64m

    • Unless you have problems with pauses, try granting as
      much
      memory as possible to the virtual machine. The default size (64MB) is
      often too small.


      Setting -Xms
      and -Xmx to the same
      value increases predictability by removing the most important sizing
      decision from the virtual machine. On the other hand, the virtual
      machine can't compensate if you make a poor choice.


      Be sure to increase the memory as you increase the
      number of
      processors, since allocation can be parallelized.

  • 30 Aug 06
  • 25 Aug 06
  • 07 Aug 06
  • 11 Jul 06
  • 27 Dec 05
  • 08 Dec 05
    wytzekoopal
    Wytze Koopal

    Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine

    java performance gc java5 sakaiaustin05 sakai

  • 04 Apr 05
  • 17 Feb 05