[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: JCVS Requests :-)


On Fri, Aug 6 1999, David Holst wrote:
David> One more question, I have noticed that if I keep JCVS up and running for a while
David> (few days) with project screens open, it can take up a lot of memory.  Looks like a
David> memory leak of some sort.  I just got rid of a JCVS5.1.1 version that was taking up
David> 41 Mb.  Restarting is no big deal, but this should probably be looked into...

Turns out that this is Sun's code (surprise surprise!). It appears to be something
related to text component cursor blinking. Here is the OptimizeIt output:

Class name                                                            	Instance count	Difference	
----------------------------------------------------------------------	--------------	----------	
javax.swing.SystemEventQueueUtilities$RunnableEvent                   	76            	+ 69      	
java.awt.event.ActionEvent                                            	75            	+ 69      	
java.awt.EventQueueItem                                               	75            	+ 69      	

These numbers climb in sync at a rate of about 2 or 3 per second (kinda like a "blink rate").
If I GC they collect just fine.

I hate the idea of adding yet another thread to periodically GC, but this leak will simply
eat whatever memory the JVM will give it...

Tim Endres  -  time@ice.com
ICE Engineering, Inc.  -  http://www.ice.com/
"USENET - a slow moving self parody." - Peter Honeyman