tracker issue : CF-3119991

select a category, or use search below
(searches all categories and all time range)
Title:

coldfusion.util.key leaks

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): david ames / david ames (david ames)

Created: 02/21/2012

Components: Core Runtime

Versions: 9.0.1

Failure Type: Memory Leak

Found In Build/Fixed In Build: 9.0.1 / 281656

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Win 2008 Server R2

Vote Count: 10

Problem Description:
Objects of class coldfusion.util.key are never released for GC.  We have a large CF application that will leak a few hundred MB per day of coldfusion.util.key classes.  App server will crash after a few weeks of continuous use.


Steps to Reproduce:
Simplest reproduction case is to run this:

<cfset transient = structNew() />
<cfloop from="1" to="1000000" index="index">
	<cfset transient[index] = true>
</cfloop>

Do a heap dump, and search the heap dump for instances of coldfusion.util.key.  There will be 1,000,000 there and they will never get cleaned up. 

Actual Result:
There will be 1,000,000+ instances of java.util.key on the heap.


Expected Result:

These should be cleaned up.

Any Workarounds:
None that i know of

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3119991

External Customer Info:
External Company:  
External Customer Name: davidames
External Customer Email:  
External Test Config: My Hardware and Environment details: 64bit windows, JDK U242.

Attachments:

Comments:

Originally posted as 86893 on the old bug base.
Comment by External U.
20665 | February 21, 2012 09:59:49 PM GMT
Causing performance issue, server keeps crashing
Vote by External U.
20669 | February 21, 2012 10:09:02 PM GMT
This is causing me untold grief.. Restarting CF is not a solution...
Vote by External U.
20670 | February 21, 2012 10:13:24 PM GMT
Leaking memory. About 1GB/week.
Vote by External U.
20671 | February 21, 2012 10:26:14 PM GMT
Experiencing the same memory leak as reported by original poster. Problem did not exist on CF8 prior to upgrade (have repeated test on one of our old boxes and can confirm leak is not present). Have also repeated test on CF10 beta and the leak remains.
Vote by External U.
20672 | February 22, 2012 01:42:39 PM GMT
I too am experiencing this bug in a production deployment and the workaround (regular restarts of the server instance) is not acceptable.
Vote by External U.
20673 | February 22, 2012 03:43:02 PM GMT
+1 for me! Restarting a production server is not the solution.
Vote by External U.
20674 | February 22, 2012 05:26:01 PM GMT
Heap does not evacuate "coldfusion.util.key" when garbage collected.
Vote by External U.
20675 | February 22, 2012 07:10:42 PM GMT
A work mate hacked together a solution. It's detailed here; http://stackoverflow.com/questions/5898291/coldfusion-util-key-memory-leak-issue-with-structure-keys/9401913
Comment by External U.
20666 | February 23, 2012 07:41:50 PM GMT
Having to do daily restarts of CF to prevent memory serial Major GCs
Vote by External U.
20676 | February 26, 2012 02:12:40 PM GMT
Weekly server restarts needed to keep production servers alive.
Vote by External U.
20677 | February 27, 2012 09:17:24 AM GMT
I see state closed status fixed. How do I get Hot Fix or build 281656 to apply on my CF9 CF10?
Comment by External U.
20667 | February 29, 2012 07:21:44 PM GMT
Initially it leaked about 3GB/hour for a high traffic site - we have to restart every 45 minutes to keep it somewhat stable. After changes to a bunch of scripts we are now down to having to restart it "only" every 75 minutes. Unfortunately the temporary workaround presented by davidames does not seem to be able to actually clear the cache for us (we are on 9,0,1,274733).
Comment by External U.
20668 | August 07, 2012 10:12:46 AM GMT
Causing constant crashes and resource exhaustion.
Vote by External U.
20678 | May 30, 2013 04:45:42 PM GMT