Is JDK 6u14 Garbage First (G1) garbage collector, suitable for JRun?

自闭症网瘾萝莉.ら 提交于 2020-01-16 00:42: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?


回答1:


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.




回答2:


http://blog.alagad.com/2009/06/18/the-g1-garbage-collector/




回答3:


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?




回答4:


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>


来源:https://stackoverflow.com/questions/539272/is-jdk-6u14-garbage-first-g1-garbage-collector-suitable-for-jrun

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!