tracker issue : CF-3539667

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

java.util.ConcurrentModificationException

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Paolo Groppo / Paolo Groppo (paolog)

Created: 04/10/2013

Components: Server Monitoring

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 3

Listed in the version 2016.0.0.297996 Issues Fixed doc
Problem Description: java.util.ConcurrentModificationException stop most of graphical data output in Server Monitoring when cached queries are stored in QUERY region supported by Ehcache (Use internal cache to store queries NOT flagged) and custom caches are used.

The error message is:
C:\ColdFusion10\cfusion\wwwroot\CFIDE\adminapi\servermonitoring.cfc
Wednesday, Apr 10, 2013  8:19:41 PM
flex.messaging.MessageException : java.util.ConcurrentModificationException

Steps to Reproduce:

1) Unflag "Use internal cache to store queries" in Coldfusion Administror to store queries in QUERY region supported by Ehcache
2) Create some custom caches in ehcache.xml like:

<cache name="query_15m"
	maxElementsInMemory="10000"
	eternal="false"
	timeToIdleSeconds="900"
	timeToLiveSeconds="900"
	overflowToDisk="false"
	diskSpoolBufferSizeMB="30"
	maxElementsOnDisk="200000"
	diskPersistent="false"
	diskExpiryThreadIntervalSeconds="900"
	memoryStoreEvictionPolicy="LRU"
	clearOnFlush="true"
	/>

	<cache name="query_01h"
	maxElementsInMemory="10000"
	eternal="false"
	timeToIdleSeconds="3600"
	timeToLiveSeconds="3600"
	overflowToDisk="false"
	diskSpoolBufferSizeMB="30"
	maxElementsOnDisk="200000"
	diskPersistent="false"
	diskExpiryThreadIntervalSeconds="3600"
	memoryStoreEvictionPolicy="LRU"
	clearOnFlush="true"
	/>

	<cache name="query_01d"
	maxElementsInMemory="10000"
	eternal="false"
	timeToIdleSeconds="86400"
	timeToLiveSeconds="86400"
	overflowToDisk="false"
	diskSpoolBufferSizeMB="30"
	maxElementsOnDisk="200000"
	diskPersistent="false"
	diskExpiryThreadIntervalSeconds="3600"
	memoryStoreEvictionPolicy="LRU"
	clearOnFlush="true"
	/>

3) Start Server Monitoring

Actual Result:

Multiple errors:
The error message is:
C:\ColdFusion10\cfusion\wwwroot\CFIDE\adminapi\servermonitoring.cfc
Wednesday, Apr 10, 2013  8:19:41 PM
flex.messaging.MessageException : java.util.ConcurrentModificationException

Expected Result:

No errors

Any Workarounds:

Revert back to internal cache

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

Watson Bug ID:	3539667

External Customer Info:
External Company:  
External Customer Name: paolog
External Customer Email:  
External Test Config: My Hardware and Environment details: Coldfusion 10 Enterprise on VPS hosting at www.hostek.com, Windows Server 2008 R2 64bit, 5,5Gb RAM 100GB HD.

JVM settings: Minimum JVM Heap Size (in MB): 2048 Maximum JVM Heap Size (in MB): 2048

JVM Arguments:

-server -XX:+UseCompressedOops -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseParNewGC -XX:NewSize=96m -XX:MaxNewSize=96m -XX:SurvivorRatio=4 -XX:MaxPermSize=256m -XX:PermSize=256m -Dcoldfusion.home={application.home} -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random

Attachments:

  1. April 11, 2013 00:00:00: 1_ehcache.xml
  2. November 02, 2013 00:00:00: 2_log.txt

Comments:

The problem disappear when internal cache is used
Comment by External U.
15761 | April 10, 2013 12:56:27 PM GMT
Server Details Server Product ColdFusion Version ColdFusion 10,284032 Edition Enterprise Operating System Windows Server 2008 R2 OS Version 6.1 Update Level chf10000008.jar Adobe Driver Version 4.1 (Build 0001)
Comment by External U.
15762 | April 10, 2013 05:09:49 PM GMT
more data is cached in ehcache, more errors I have in Server Monitor. With 30000 elements cached Server Monitor become totally unusable.
Comment by External U.
15763 | April 12, 2013 03:35:55 AM GMT
I've had this error when accessing a running cfthread object with memory monitor active in the ColdFusion Administrator. I disabled the memory monitor, error went away.
Comment by External U.
15764 | June 18, 2013 06:09:46 PM GMT
I am noticing this exact same problem on a clean install. Win2008 R2 / IIS 7.5 / CF10 Ent (10,0,11,285437), Tomcat version 7.0.23.0. Server Monitor flash GUI stops working randomly.
Vote by External U.
15770 | August 29, 2013 12:29:30 PM GMT
Same problem here. Server monitor keeps stopping after a few minutes, when I tab into another screen like Statistics and check the memory, then it will start working again, but then stops again after a few minutes if there is no input from me. CF9 never had this issue, monitor would run all day long without stopping. I have tried disabling profiling and memory tracking, but none of this works. Please fix!
Vote by External U.
15771 | September 19, 2013 02:19:48 PM GMT
Not able to reproduce this issue: Verified in CF10 Windows 2008 R2 1) Unflag "Use internal cache to store queries" in Coldfusion Admin 2) Created custom caches as given in the bug description 3) Started Server Monitoring No Error in "Last Error" section of Server Monitor as well as in CF error/exception logs Can you please provide some additional info on basis of which we can reproduce this. (Comment added from ex-user id:nawani)
Comment by Adobe D.
15765 | September 26, 2013 04:40:55 AM GMT
Is your testing server busy? I noticed more errors when more pages are requested (and more cache request). My server actually has from 3 to 7 page requests every second. Every page contains 6/8 cache requests.
Comment by External U.
15766 | September 26, 2013 03:43:18 PM GMT
Is there any update on this? I experience this problem 100% of the time, and it's very annoying. I cannot collect stats from the UI for more than a few minutes before I stops reporting. Watch the HTTP traffic go by in Firebug does not yield any insights. My particular message starts out like this: [BlazeDS]Exception when invoking service 'remoting-service': flex.messaging.MessageException: java.util.ConcurrentModificationException incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) operation = getRealtimeStats clientId = 2D3F0114-690D-B4F0-6E11-CD0F3CDA72AC destination = ColdFusion messageId = 65D6531E-5559-ED6F-9435-04BB35AA7649 timestamp = 1383058847216 timeToLive = 0 body = [ ] hdr(DSRequestTimeout) = 30 hdr(DSId) = 2D3EFF72-EE1C-D8BF-F44D-256960FBA857 hdr(DSEndpoint) = my-cfamf Exception: flex.messaging.MessageException: java.util.ConcurrentModificationException......... blah blah blah after that but matches the bug submitted here.
Comment by External U.
15767 | November 01, 2013 09:42:47 AM GMT
CF Monitor still freeze in less than a minute, I've attached a log file.
Comment by External U.
15768 | November 01, 2013 08:50:25 PM GMT
I'm also getting the same thing with CF11. default install & settings (internal cache unticked). error occurs each time I start CF Server Monitoring
Comment by External U.
15769 | December 01, 2014 09:56:42 AM GMT
I'm also getting the same thing with CF11. default install & settings (internal cache unticked). error occurs each time I start CF Server Monitoring
Vote by External U.
15772 | December 01, 2014 09:57:10 AM GMT