Question

Garbage First (G1) garbage collector http://weblogs.java.net/blog/opinali/archive/2009/02/here_comes_jdk.html

Do you think this garbage collector is better for JRun, running ColdFusion 8?

Was it helpful?

Solution

I will tell you that updating the JVM in ColdFusion is a breeze, so I always update to the latest JVM once it's been released for a month. I haven't had any problems with any of the releases thus far and ColdFusion seems to be getting a little quicker with each update.

That said, you should always updated the JVM on a test machine first and run your battery of tests to make sure nothing breaks.

OTHER TIPS

G1 is available in Java 6 update 14. It might be a good choice from a technical perspective, but in this release, it has the following odd restriction:

Although G1 is available for use in this release, note that production use of G1 is only permitted where a Java support contract has been purchased. G1 is supported thru Sun's Java Platform Standard Edition for Business program.

InfoQ has speculation about whether this is just a short term limitation or a long term attempt by Sun (now Oracle) to make some money: Is Sun offering the new G1 Garbage Collector Only with a Paid Support Contract?

Here is the solution you are looking for, read on garbage collectors:

http://training.figleaf.com/curriculum/upload/AdminCF800_Unit05_configuringPerformance.pdf

(see page 5-10)

<cfscript>
    obj = createObject("java", "java.lang.System");
    obj.gc();
    obj.runFinalization();
</cfscript>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top