Accessibility

TechNote

ColdFusion MX 7.0.2: Hot fix to make ColdFusion release memory properly with file uploads and CFC’s stored in application, session or server scope

Issue


ColdFusion does not release the memory properly with file uploads when a reference to a CFC is stored in the application, session or server scope in the same page. This impacts the performance of ColdFusion components stored in shared scopes that call cffile/upload. This is logged as issue 64335.

Reason


ColdFusion does not dereference the CFC objects that are stored in application, session or server scope. File upload memory is not released properly by JRun, as it keeps the request buffer for every worker thread and maintains that buffer at that size for the lifetime of the thread. A ColdFusion CFC memory leak, along with JRuns request buffer, caused ColdFusion to not release the memory properly.

Solution


Both ColdFusion MX 7 cumulative and individual hot fixes are installed in the ColdFusion Administrator. The installation process is the same for all platforms and installation choices.

ColdFusion MX 7.0.2
  1. Download hotfix-64335.zip.
  2. Extract jrun-hotfix-64335.jar and hf702-64335.jar from the hotfix-64335.zip file.
  3. Copy jrun-hotfix-64335.jar to cf_root/runtime/servers/lib (for Standalone ColdFusion server).
  4. Open the ColdFusion Administrator and select the System Information page. Next to the Update File field, either:
    • Type in the file path to hf702-64335.jar and click Submit.

      OR
    • Select the Browse Button and browse to the hf702-64335.jar. Select the file and click Submit.
  5. Restart the ColdFusion service.
MultiServer Coldfusion 7.0.2 with Jrun 4 updater 5
  1. Download hotfix-64335-U5.zip.
  2. Extract jrun-hotfix-64335.jar and hf702-64335.jar from the hotfix-64335-U5.zip file.
  3. Copy jrun-hotfix-64335.jar to JRun-Home/servers/lib.
  4. Open the ColdFusion Administrator and select the System Information page. Next to the Update File field, either:
    • Type in the file path to hf702-64335.jar and click Submit.

      OR
    • Select the Browse Button and browse to the hf702-64335.jar. Select the file and click Submit.
  5. Restart the ColdFusion service.
MultiServer Coldfusion 7.0.2 with Jrun 4 updater 6
  1. Download hotfix-64335-U6.zip.
  2. Extract jrun-hotfix-U6-64335.jar and hf702-64335.jar from the hotfix-64335-U6.zip file.
  3. Copy jrun-hotfix-U6-64335.jar to JRun-Home/servers/lib.
  4. Open the ColdFusion Administrator and select the System Information page. Next to the Update File field, either:
    • Type in the file path to hf702-64335.jar and click Submit.

      OR
    • Select the Browse Button and browse to the hf702-64335.jar. Select the file and click Submit.
  5. Restart the ColdFusion service.

Note: This hot fix is only applicable to ColdFusion server deployed to JRun. ColdFusion server deployed on application servers other then JRun are not affected.

The ColdFusion MX 7 hot fix JAR file does not need to be retained after installing it with the ColdFusion Administrator. The file has been copied into the correct location.

The ColdFusion MX 7 hot fix JAR file will appear as a new entry in the System Information list.

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:kb401239

Products Affected:

coldfusion