問題描述
我有一個 ColdFusion 8.1 應(yīng)用程序.它被大量使用,我看到 jrun.exe 在任務(wù)管理器中的內(nèi)存使用率很高.這是一個 32 位的 windows 2003 服務(wù)器.當(dāng) Jrun 解決內(nèi)存使用問題時,ColdFusion 將在某個時候停止響應(yīng).日志有點(diǎn)模糊,但我開始在 ColdFusion 日志中看到垃圾收集和堆錯誤.我假設(shè) JRE 內(nèi)存不足.
I have a ColdFusion 8.1 application. It gets heavy use and I see jrun.exe getting very high memory usage in the task manager. This is a 32-bit windows 2003 server. When Jrun gets around a gig of memory usage ColdFusion will stop responding at some point. The logs are a little vague, but I start to see garbage collection and heap errors in the ColdFusion log. I assume that the JRE is running out of memory.
我將最大 JVM 堆設(shè)置為 1.2gig.經(jīng)過一些試驗(yàn),這似乎是我可以分配的最大數(shù)量,并且 ColdFusion 仍然可以正常啟動.我意識到轉(zhuǎn)為 64 位可能會解決問題,但目前這不是一個選項(xiàng).
I have the max JVM heap set to 1.2gig. After some experimenting, this seemed to be the biggest amount I could allocate and still have ColdFusion start ok. I realize that going to 64-bit might solve the problem, but that is not an option at this time.
我正在考慮升級 JRE(它是 2008 年之前的 v6.x,雖然我不知道確切的版本.我正在使用 ColdFusion 8.1 附帶的 JRE.有人經(jīng)歷過這個嗎?我想只需安裝新的 JRE 并將 ColdFusion 指向 ColdFusion 服務(wù)器設(shè)置中的新 JRE 目錄即可.
I am considering upgrading the JRE (it is at v6.x dated pre-2008, though I don't know the exact version. I am using the JRE that came with ColdFusion 8.1. Has anyone gone through this? I assume it's just a matter of installing the new JRE and pointing ColdFusion to the new JRE directory in the ColdFusion server settings.
tia不要
推薦答案
這非常很容易做到.
1) 下載 Java SE Development Kit 并像平常一樣安裝它.
1) download the Java SE Development Kit and install it like normal.
2) 在文本編輯器中打開 jmv.config for cf,位于 c:coldfusion8 untimein
2) open up the jmv.config for cf in a text editor, located in c:coldfusion8 untimein
3) 通過在行首添加 "#" 來注釋現(xiàn)有的 java.home 行,添加新的 java.home 下方的行指向您的 jvm 安裝.
3) comment out the existing java.home line with a by putting a "#" at the beginning of the line add a new java.home line below it pointing to your jvm installation.
例如,我的 java.home 和 jvm.config 如下所示:java.home=C:/Program Files/Java/jdk1.6.0_11/jre
As an example, my java.home and jvm.config look like this: java.home=C:/Program Files/Java/jdk1.6.0_11/jre
4) 重啟 CF 服務(wù).
4) restart the CF services.
作為獎勵,您可以運(yùn)行 JavaRa 并釋放一些通過刪除所有舊版本的 JRE 來騰出空間.
As a bonus, you can running JavaRa and free up some space by deleting all the old versions of the JRE.
這篇關(guān)于升級 ColdFusion 使用的 JRE的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!