• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cold Fusion 11 Java version question

Explorer ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

Hi

The Java version for the Cold Fusion 11 in the Development and Test environments is:

Java Version  1.7.0_51 

The Java version for the Cold Fusion 11 in the production environment is

Java Version  1.8.0_25

Is it possible to update the Cold Fusion Java version in the Development and Test enviroments with the version rom the production install without installing the build used in the production install?

If so, how would this be done?

Thanks,

Mike

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

There are a few blogs and knowledge bases online that explain it. Here is a quick run down:

  1. ColdFusion stores the path of its Java runtime in /cfusion/bin/jvm.config. Make a backup of this file! That way, if something goes wrong, you can simply stop ColdFusion, restore that file, restart ColdFusion, and you'll be back up and running as if you'd have changed nothing at all.
  2. Download JRE 1.8.0_25 (or JDK 1.8.0_25) on to your ColdFusion server. Make sure you pick the right version for your OS. If you are using 32bit ColdFusion you must install the 32bit JRE, and if you are using 64bit ColdFusion you must install the 64bit JRE. (Pay attention to the 32bit versus 64bit decision, on a 64bit machine the page may default to 32bit if it detects you are using a 32bit web browser).
  3. Once you have downloaded JRE 1.8, install it on your server.
  4. Note the JRE 1.8 installation folder, you'll need the full path to it.
  5. Log in to ColdFusion Administrator.
  6. Go to the Server Settings > Java and JVM page.
  7. Replace the Java Virtual Machine Path with the path to the newly installed JRE 1.8 (you can also click Browse Server to locate the folder), then click Submit Changes.
  8. You will be instructed to restart ColdFusion, so do that.
  9. Once ColdFusion has restarted, log back into the ColdFusion Administrator and go to Server Settings > Settings Summary. In the JVM Details section Java Version should indicate that you are running 1.8.0_25

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

Hi,

What is the location to download the JRE 1.8.0_25 ( JDK 1.8.0_25) ?

Thanks,

Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

LATEST

You can install it where ever you want. You use the coldfusion admin to reference the path (Step 7).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

Be aware that Java 1.8 uses memory completely different than 1.7.  Enough that the jvm.config has a small change in it's memory setting so that the same file may not work between the two.  Here is an article.

Essentially, as part of your jvm.config file: The PermSize and MaxPermSize JVM arguments are ignored and a warning is issued if present at start-up.  A new flag is available (MaxMetaspaceSize), allowing you to limit the amount of native memory used for class metadata. If you don’t specify this flag, the Metaspace will dynamically re-size depending of the application demand at runtime.

From what I've read this MetaSpace setting is supposed to cure us of the old "heapspace" out of memory errors.  However, I've found that not to be the case.  I had to play with this setting for CF11 to avoid "MetaSpace" errors.  See my posting here.

Hopefully you will fair better.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation