Solved

What is the standard Java Garbage Collection method for Red Hat 6.x

Posted on 2014-12-31
4
305 Views
Last Modified: 2015-01-05
I installed Red hat 6.x, including the default Java that comes with the system

What is the default Garbage Collection method used by this version of Java

How can I double check ?

Thanks
0
Comment
Question by:Anthony Lucia
  • 2
  • 2
4 Comments
 
LVL 26

Assisted Solution

by:dpearson
dpearson earned 250 total points
ID: 40526138
In part it depends on whether you're running 32-bit or 64-bit.

This table should help you figure it out:
http://www.techpaste.com/2012/02/20/default-jvm-settings-gc-jit-java-heap-sizes-xms-xmx-operating-systems/#more-3569

Or here:
http://www.fasterj.com/articles/oraclecollectors1.shtml

I'm not aware of any simple way to print it out at the command line.  The first page suggests using
 java -XX:+PrintCommandLineFlags -version
but I think that will only help if RedHat is overriding the default.  Still it may be useful.

Hope that helps,

Doug
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 40526515
OpenJDK 6 is more or less a rebuild of open-sourced JDK
So it is safe to assume it is a Hotspot Server VM with G1 garbage collector.
0
 
LVL 26

Accepted Solution

by:
dpearson earned 250 total points
ID: 40526784
Unless OpenJDK is working with a different version system I don't think G1 is the default in OpenJDK 6.

According to this G1 only came in fully with JDK7u4:
http://www.oracle.com/technetwork/tutorials/tutorials-1876574.html
The G1 garbage collector is fully supported in Oracle JDK 7 update 4 and later releases

Even in JDK7 it doesn't default to G1 (at least our CentOS Linux installs) - it's just an available option.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 40526790
Oh sorry it was called "parallel newgen" for java 1.6
Default is determined on startup. It could be one or other depending on heap size anc CPU number in system.

The "default java" that comes with system is gcj 1.4.2 that uses Boehm GC
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet filter example 37 61
hibernate insert example 13 28
Penetration Testing home based work 3 75
hibernate example using maven 12 42
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question