問題描述
我有一個在 Coldfusion 10 64bit
上運行的網絡服務.在調查內存泄漏時,我將 JRE 從 1.6 升級到 1.7,但發現性能受到了顯著影響.我創建了一個簡單的測試 web 服務,在 JRE 1.6 上,只要我將 JRE 更改為 1.7,我就可以輕松地以每分鐘 5000 個請求運行,盡管這個速率每分鐘下降了 2000 或更少.有誰知道調整設置或我缺少的東西.
I have a webservice running on Coldfusion 10 64bit
. While investigating a memory leak I went to upgrade the JRE from 1.6 to 1.7 but noticed a significant performance hit. I had created a simple test webservice which on JRE 1.6 I could run easily at 5000 requests per minute as soon as I changed the JRE to 1.7 though this rate drops too 2000 or less per minute. Does anyone know of tuning settings or something I am missing.
首選是使用 JRE 1.7
,因為它似乎已經解決了我遇到的內存泄漏問題.
The preference is to use JRE 1.7
as it appears to have fixed the memory leak issue I was having.
運行服務器 JRE:java 版本1.7.0_51"Java(TM) SE 運行時環境(構建 1.7.0_51-b13)Java HotSpot(TM) 64 位服務器 VM(構建 24.51-b03,混合模式)
Running Server JRE: java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
JVM 設置中的垃圾回收:-XX:+UseParallelGC
Garbage Collection in JVM settings: -XX:+UseParallelGC
將垃圾收集更改為:-XX:+UseG1GC
這沒什么區別.
Changed Garbage Collection to : -XX:+UseG1GC
this made no difference.
遵循這里的建議,沒有增加在性能上.將與 jvisualvm 一起審查并發布我的發現.
Followed the recommendations from here with no increase in performance. Will review with jvisualvm and post my findings.
更新:Java 7 改變了處理同步類的方式加載器,看起來這可能是速度變慢的原因.
Update: Java 7 has changed the way it deals with synchronizing class loaders and it looks like this may be the cause of the slowdown.
更新Adobe 已承認該錯誤并正在尋求修復它.Adobe 錯誤基礎記錄.
Update Adobe has acknowledged the bug and is looking to fix it. Adobe bug base record.
推薦答案
對此的回答是,Adobe 已經承認了這個錯誤并正在尋求修復它.Adobe 錯誤基礎記錄.
Answer for this is that Adobe has acknowledged the bug and is looking to fix it. Adobe bug base record.
這篇關于與 1.6 相比,使用 Java 1.7 時 Coldfusion 10 慢的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!