Re: Java Garbage Collection



Tim.Docis@xxxxxxxxxxxxx wrote:
Hi

Need to be able to find out how to set the type of Garbage Collection
we are using on our win 2003 server. JDK1.5 installed. Running Apache
Tomcat5. JConsole shows we have PS MarkSweep and PS Scavenge as GC's.
Does anyone know how to change this? (Duplicate other servers are
using "Copy" and "MarkSweepCompact" as Garbage Collectors...dont know
how there is a difference...
Also, does anyone know how to switch the JIT compiler between HotSpot
Client and HotSpot Server compiler?

Thank You

Here's an interesting white paper which touches on various performance issues in Java, including garbage collection.

<http://java.sun.com/performance/reference/whitepapers/6_performance.html>

More thoughts along those lines:

<http://www.ibm.com/developerworks/java/library/j-java6perfmon/>

<http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/clopts.html>

<http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html>

That last one has a FAQ with some command line options at the end. Is "PS" the parallel threads GC? Wouldn't that be better on a multi-core machine?

Here's how to set the command line for 1.4:

<http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html>

I still can't find the exact commands for GCs. This looks like a good starting point:

<http://docs.sun.com/source/819-0084-10/pt_tuningjava.html>
.



Relevant Pages

  • Re: Java Garbage Collection
    ... Need to be able to find out how to set the type of Garbage Collection ... Client and HotSpot Server compiler? ...
    (comp.lang.java.programmer)
  • Java Garbage Collection
    ... Need to be able to find out how to set the type of Garbage Collection ... Running Apache ... Client and HotSpot Server compiler? ...
    (comp.lang.java.programmer)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Can you do the following on uksccmads01 ... The problem may actually have nothing to do with the new server but the ... From a command prompt try and see if you get any additional info ... Skipping site UK-CCM, this site is outside the scope ...
    (microsoft.public.windows.server.active_directory)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Can you do the following on uksccmads01 ... The problem may actually have nothing to do with the new server but the ... Active Directory Forest Replication GUIDs Found: ... From a command prompt try and see if you get any additional info ...
    (microsoft.public.windows.server.active_directory)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Default Server: uksccmads01.jw-uk.jameswalker.co.uk ... Output from dnslint on uksccmads01: No erros found, ... Active Directory Forest Replication GUIDs Found: ... From a command prompt try and see if you get any additional info ...
    (microsoft.public.windows.server.active_directory)