Call for Paper - January 2024 Edition
IJCA solicits original research papers for the January 2024 Edition. Last date of manuscript submission is December 20, 2023. Read More

CMS and G1 Collector in Java 7 Hotspot: Overview, Comparisons and Performance Metrics

International Journal of Computer Applications
© 2012 by IJCA Journal
Volume 43 - Number 11
Year of Publication: 2012
Clarence J M Tauro
Manjunath V Prabhu
Vernon J Saldanha

Clarence J M Tauro, Manjunath V Prabhu and Vernon J Saldanha. Article: CMS and G1 Collector in Java 7 Hotspot: Overview, Comparisons and Performance Metrics. International Journal of Computer Applications 43(11):27-32, April 2012. Full text available. BibTeX

	author = {Clarence J M Tauro and Manjunath V Prabhu and Vernon J Saldanha},
	title = {Article: CMS and G1 Collector in Java 7 Hotspot: Overview, Comparisons and Performance Metrics},
	journal = {International Journal of Computer Applications},
	year = {2012},
	volume = {43},
	number = {11},
	pages = {27-32},
	month = {April},
	note = {Full text available}


Java is used in large enterprise server applications. Enterprise applications are characterized by large amount of live heap data and considerable thread level parallelism. Garbage collectors are programs that attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the main program [1]. The strength of Java platform is that it performs automatic memory management, thereby shielding developers from the complexity of explicit memory management. This paper provides an overview of features shared by most Garbage collectors in the latest version of java (as of Jan-2012) Java7. This document also attempts to compare the CMS (Concurrent Mark and Sweep) collector against its replacement and a new implementation in Java7, G1 aka "Garbage first" [2].


  • Description of HotSpot GCs: Memory Management in the Java HotSpot Virtual Machine White Paper: http://java. sun. com/j2se/reference/whitepapers/memorymanagement_whitepaper. pdf.
  • The Garbage-First Garbage Collector, Oracle Technology network http://www. oracle. com/technetwork/java/javase/tech/g1-intro-jsp-135488. html.
  • Tuning Garbage Collection with the 1. 4. 2 Java[tm] Virtual Machine, http://java. sun. com/docs/hotspot/gc1. 4. 2/
  • Luke Dykstra, Witawas Srisa-an, and J. Morris Chan, "An Analysis of the Garbage Collection Performance in Sun's HotSpotTM Java Virtual Machine"
  • Witawas Srisa-an, Chia-Tien Dan Lo, and J. Moms Chang, "Scalable Hardware-algorithm for Mark-sweep Garbage Collection
  • The Java Language Environment, Memory Management and Garbage Collection, http://java. sun. com/docs/white/langenv/Simple. doc1. html#2333
  • Formal Programming Language Theory, Dataflow Analysis http://www. cs. is. noda. tus. ac. jp/~mune/keio/m/chap2. pdf.
  • Sergey V. Rogov, Viacheslav A. Kirillin, and Victor V. Sidelnikov,"Optimization of Java Virtual Machine with Safe-Point Garbage Collection",
  • The original G1 paper: Detlefs, D. , Flood, C. , Heller, S. , and Printezis, T. 2004. Garbage-first garbage collection. In Proceedings of the 4th international Symposium on Memory Management (Vancouver, BC, Canada, October 24 - 25, 2004 ) http://labs. oracle. com/jtech/pubs/04-g1-paper-ismm. pdf