Upgrading the JRE used by ColdFusion

前端 未结 4 1614
暗喜
暗喜 2021-01-19 19:43

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

相关标签:
4条回答
  • 2021-01-19 20:18

    Adobe has a Knowledge Base that covers issues like this. Check out http://www.adobe.com/go/2d547983 for instructions.

    Sean Corfield has an article that provides some info on using Java 6 with ColdFusion 8 here: http://corfield.org/blog/index.cfm/do/blog.entry/entry/Java_6_and_ColdFusion_8

    As long as you install 1.6.0_10 or greater, you should be fine. You might check out ColdFusionBloggers.org from time to time in case other JVM issues come to light in the future.

    0 讨论(0)
  • 2021-01-19 20:27

    You didn't specify whether or not you were using the stand-alone server instance or a multi-server configuration. If you're getting a heavy volume of traffic and have a dual core machine with a lot of physical memory, I would consider looking into the multi-server set-up for CF8 and putting together a cluster with load balancing. This will help to distribute your traffic across several instances of CF8 and, assuming you have a beefy server, make better use of the physical resources that you have available.

    -Rick

    0 讨论(0)
  • 2021-01-19 20:28

    Consider moving Java 7. Java 7 has the G1 Garbage collector which is better at memory deallocation.
    If you are having out of memory issues it could be because

  • functions are not using var or local scope
  • <cfdump> is used in a production system
  • Sessions are too large or are not set to expire in a reasonable amount of time
  • Queries are way too large SELECT * can cause that.
  • Excessive number Query of Queries.
  • The site is connecting to a slow database. Resources are held until the DB returns data
  • DSN has the data buffer set to more than 64k

0 讨论(0)
  • 2021-01-19 20:34

    it's EXTREMELY easy to do.

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

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

    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.

    As an example, my java.home and jvm.config look like this: java.home=C:/Program Files/Java/jdk1.6.0_11/jre

    4) restart the CF services.

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

    0 讨论(0)
  • 提交回复
    热议问题