Re: Java Garbage Collection
Tim.Docis@gmacrfc.co.uk wrote:
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?
Arne VajhQj wrote:
It is controlled via parameters to the Java command. So check the
startup command.
<http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html>
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html>
For tuning GCs:
<http://java.sun.com/performance/reference/whitepapers/tuning.html>
The information there is a little old. Snoop around the Java 6 docs for new
options.
GC options, and command-line options generally, vary with the JVM, not only
between vendors but between releases from the same vendor.
--
Lew