cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [Bug?] Cocoon MRUStore not synchronized
Date Tue, 26 Mar 2002 14:19:00 GMT

Vadim Gritsenko wrote:
> 
> MRUStore synchronization is on my list. In current version I do not
> expect issues except some exceptions, but I will change it to be
> properly synchronized.
> 
Hmm, all hanging threads log the following lines from the hold()
method:
        if (getLogger().isDebugEnabled()) {
            getLogger().debug("Holding object in memory:");
            getLogger().debug("  key: " + key);
            getLogger().debug("  value: " + value);
        }
And then nothing is logged. The next message in the log would
be the release of the xml serializer but this never shows up,
so I guess this is a synchronization problem in the MRUStore.

Carsten

> Vadim
> 
> > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > 
> > Hi Team,
> > 
> > after investigating a little bit in some lockups I found out that
> > the MRUStore is not synchronized. Is this by intention?
> > 
> > It seems that under high load and with a little bit of luck all
> threads
> > hang in this loop in the hold() method:
> > 
> > while (this.mrulist.size() >= this.maxobjects) {
> >             /** ...ok, heapsize is reached, remove the last element...
> */
> >             this.free();
> > }
> > 
> > This is only an assumption. Anyone if this might be possible with
> let's say
> > 100 concurrent threads?
> > 
> > Carsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message