Is JDK 6u14 Garbage First (G1) garbage collector,

2019-07-30 14:33发布

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?

4条回答
可以哭但决不认输i
2楼-- · 2019-07-30 14:48

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?

查看更多
一纸荒年 Trace。
4楼-- · 2019-07-30 14:59

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>
查看更多
乱世女痞
5楼-- · 2019-07-30 15:01

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.

查看更多
登录 后发表回答