JDK7 G1 Garbage Collector
Hi,
I notice JDK7 preview is available:
Have done a small amount of testing with Java 7 on CF9 and find encouraging results for application performance particularly with the new Generational One collector (not sure what the correct terminology is for that) -XX:+UseG1GC in place of the usual -XX:+UseParallelGC garbage collector. Don’t let the new collector scare you the ParallelGC we all use and love still works with Java 7.
Once JDK7 is installed, edit CF\runtime\bin\jvm.config (need I mention backup the original first?) eg:
java.home=C:\\Program Files\\Java\\jdk1.7.0\\jre
# Arguments to VM
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseG1GC
etc
For those interested my CFADMIN > System Information reports in part:
Server Details
Server Product ColdFusion
Version 9,0,1,274733
Edition Developer
Serial Number
Operating System Windows 7
OS Version 6.1
Update Level /C:/ColdFusion9/lib/updates/chf9010001.jar
Adobe Driver Version 4.0 (Build 0005)
JVM Details
Java Version 1.7.0-ea
Java Vendor Oracle Corporation
Java Vendor URL http://java.oracle.com/
Java Home C:\Program Files\Java\jdk1.7.0\jre
User Dir C:\ColdFusion9\runtime\bin
Java VM Specification Version 1.7
Java VM Specification Vendor Oracle Corporation
Java VM Specification Name Java Virtual Machine Specification
Java VM Version 21.0-b05
Java VM Vendor Oracle Corporation
Java VM Name Java HotSpot(TM) Server VM
Java Specification Version 1.7
Java Specification Vendor Oracle Corporation
Java Specification Name Java Platform API Specification
Java Class Version 51.0
Has anyone noticed something positive or negative with JDK7 and CF? Maybe I should add caveat - do not try this at home kids (on production CF servers).
Regards, Carl.
