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

查看:20
本文介绍了升级 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(它是 2008 年之前的 v6.x,虽然我不知道确切的版本.我正在使用 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不要

推荐答案

非常很容易做到.

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) 通过在行首添加 "#" 来注释现有的 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 服务.

4) restart the CF services.

作为奖励,您可以运行 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天全站免登陆