升级ColdFusion使用的JRE [英] Upgrading the JRE used by ColdFusion

查看:147
本文介绍了升级ColdFusion使用的JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ColdFusion 8.1应用程序。它被大量使用,我看到jrun.exe在任务管理器中获得了非常高的内存使用率。这是一个32位的Windows 2003服务器。当Jrun绕过一堆内存使用时,ColdFusion会在某些时候停止响应。日志有点模糊,但我开始在ColdFusion日志中看到垃圾收集和堆错误。我假设JRE内存不足。

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堆设置为1.2gig。经过一些实验,这似乎是我可以分配的最大量,并且仍然可以使用ColdFusion。我意识到转到64位可能会解决问题,但目前这不是一个选项。

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(它是在v6。 x在2008年之前的日期,虽然我不知道确切的版本。我正在使用ColdFusion 8.1附带的JRE。有没有人经历过这个?我认为这只是安装新的JRE并将ColdFusion指向新的问题ColdFusion服务器设置中的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
don

tia don

推荐答案

非常很容易做到。

1)下载 Java SE Development套件并按正常方式安装。

1) download the Java SE Development Kit and install it like normal.

2)在文本编辑器中打开cf的 jmv.config ,位于的 C:\coldfusion8\runtime\bin

2) open up the jmv.config for cf in a text editor, located in c:\coldfusion8\runtime\bin

3)通过在行的开头添加来注释掉现有的 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服务。

作为奖励,你可以运行 JavaRa 并通过删除所有旧版本的JRE来释放一些空间。

As a bonus, you can running JavaRa and free up some space by deleting all the old versions of the JRE.

这篇关于升级ColdFusion使用的JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆