You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by justin zhou <am...@hotmail.com> on 2006/02/20 02:39:32 UTC
LRUMemoryCache size mismatch
Hi,
I seen following error in our web-app. It is a cocoon web-app and running
inside jboss. the jar file
is jcs-1.2.6.1.jar. Went through the mailing list, but could not find a
straight answer for this. Will latest jcs-1.2.7.0 solve this? I seen some
consistency checking code changes added there on Dec. 3. 2005, but do not
know if it is a bug or something else.
2006-02-17 14:14:57,457 289809866 ERROR
[org.apache.jcs.engine.memory.lru.LRUMemoryCache] (TP-
Processor14:sysop_bari) update: map does not contain key:
PK_R-resource-file:/ImageMerchant/de
ploy/mc.war/skins/default/actions/zip.gif
2006-02-17 14:14:57,458 289809867 WARN
[org.apache.jcs.engine.memory.lru.LRUMemoryCache] (TP-
Processor14:sysop_bari) update: remove failed for key:
PK_R-resource-file:/ImageMerchant/deplo
y/mc.war/skins/default/actions/zip.gif
2006-02-17 14:14:57,460 289809869 ERROR
[org.apache.jcs.engine.memory.lru.LRUMemoryCache] (TP-
Processor14:sysop_bari) update: After spool, size mismatch: map.size() = 99,
linked list size
= 98
Thanks,
Justin
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by Aaron Smuts <as...@yahoo.com>.
This view gives you a better diff:
http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/src/java/org/apache/jcs/engine/memory/lru/LRUMemoryCache.java?r1=351876&r2=332199&diff_format=s
--- Aaron Smuts <as...@yahoo.com> wrote:
> The fix to prevent the erroneous error logging was
> in
> this revision, which is not in 1.2.6.1:
>
>
http://svn.apache.org/viewcvs.cgi?rev=351876&view=rev
>
> Here is a diff, but is doesn't give much context:
>
>
http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/src/java/org/apache/jcs/engine/memory/lru/LRUMemoryCache.java?r1=351876&r2=332199&diff_format=h
>
> Cheers,
>
> Aaron
>
> --- justin zhou <am...@hotmail.com> wrote:
>
> > Hi,
> >
> > I seen following error in our web-app. It is a
> > cocoon web-app and running
> > inside jboss. the jar file
> > is jcs-1.2.6.1.jar. Went through the mailing list,
> > but could not find a
> > straight answer for this. Will latest jcs-1.2.7.0
> > solve this? I seen some
> > consistency checking code changes added there on
> > Dec. 3. 2005, but do not
> > know if it is a bug or something else.
> >
> > 2006-02-17 14:14:57,457 289809866 ERROR
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: map does not
> contain
> > key:
> > PK_R-resource-file:/ImageMerchant/de
> > ploy/mc.war/skins/default/actions/zip.gif
> > 2006-02-17 14:14:57,458 289809867 WARN
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: remove failed for
> > key:
> > PK_R-resource-file:/ImageMerchant/deplo
> > y/mc.war/skins/default/actions/zip.gif
> > 2006-02-17 14:14:57,460 289809869 ERROR
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: After spool, size
> > mismatch: map.size() = 99,
> > linked list size
> > = 98
> >
> >
> > Thanks,
> >
> > Justin
> >
> >
>
_________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar �
> get
> > it now!
> >
>
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > jcs-users-help@jakarta.apache.org
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by justin zhou <am...@hotmail.com>.
Some clarification.
>I kind of agree the mismatch message can be just printed out of the
>synchronized block.
Should be:
mismatch message can be just printed outside of the synchronized block.
Sorry for the confusion
>From: "justin zhou" <am...@hotmail.com>
>Reply-To: "JCS Users List" <jc...@jakarta.apache.org>
>To: jcs-users@jakarta.apache.org
>Subject: Re: LRUMemoryCache size mismatch
>Date: Sun, 19 Feb 2006 22:24:37 -0600
>
>Thanks Aaron.
>
>I kind of agree the mismatch message can be just printed out of the
>synchronized block.
>I put the jcs-1.2.7 in place together with existing jboss dependency jar
>files:
>
>concurrent.jar //Implementation-Version: 1.3.3 compiled: May 11 2004
>commons-logging.jar //Implementation-Version: 1.0.3
>
>So far so good.
>
>Just curious about the error I mentioned previously:
>
>[org.apache.jcs.engine.memory.lru.LRUMemoryCache] (TP-
>Processor14:sysop_bari) update: map does not contain key:
>PK_R-resource-file:/ImageMerchant/de
>ploy/mc.war/skins/default/actions/zip.gif
>
>This only happened when the border value of the cache pool (size 100)
>reached. The secondary disk cache is disabled in our case. What can be the
>cause of the key-not-exist error? Is it normal to happen?
>
>Justin
>
>
>>From: Aaron Smuts <as...@yahoo.com>
>>Reply-To: "JCS Users List" <jc...@jakarta.apache.org>
>>To: JCS Users List <jc...@jakarta.apache.org>
>>Subject: Re: LRUMemoryCache size mismatch
>>Date: Sun, 19 Feb 2006 18:05:57 -0800 (PST)
>>
>>The fix to prevent the erroneous error logging was in
>>this revision, which is not in 1.2.6.1:
>>
>>http://svn.apache.org/viewcvs.cgi?rev=351876&view=rev
>>
>>Here is a diff, but is doesn't give much context:
>>
>>http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/src/java/org/apache/jcs/engine/memory/lru/LRUMemoryCache.java?r1=351876&r2=332199&diff_format=h
>>
>>Cheers,
>>
>>Aaron
>>
>>--- justin zhou <am...@hotmail.com> wrote:
>>
>> > Hi,
>> >
>> > I seen following error in our web-app. It is a
>> > cocoon web-app and running
>> > inside jboss. the jar file
>> > is jcs-1.2.6.1.jar. Went through the mailing list,
>> > but could not find a
>> > straight answer for this. Will latest jcs-1.2.7.0
>> > solve this? I seen some
>> > consistency checking code changes added there on
>> > Dec. 3. 2005, but do not
>> > know if it is a bug or something else.
>> >
>> > 2006-02-17 14:14:57,457 289809866 ERROR
>> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
>> > (TP-
>> > Processor14:sysop_bari) update: map does not contain
>> > key:
>> > PK_R-resource-file:/ImageMerchant/de
>> > ploy/mc.war/skins/default/actions/zip.gif
>> > 2006-02-17 14:14:57,458 289809867 WARN
>> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
>> > (TP-
>> > Processor14:sysop_bari) update: remove failed for
>> > key:
>> > PK_R-resource-file:/ImageMerchant/deplo
>> > y/mc.war/skins/default/actions/zip.gif
>> > 2006-02-17 14:14:57,460 289809869 ERROR
>> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
>> > (TP-
>> > Processor14:sysop_bari) update: After spool, size
>> > mismatch: map.size() = 99,
>> > linked list size
>> > = 98
>> >
>> >
>> > Thanks,
>> >
>> > Justin
>> >
>> >
>>_________________________________________________________________
>> > FREE pop-up blocking with the new MSN Toolbar ďż˝
>>get
>> > it now!
>> >
>>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>> >
>> >
>> >
>>---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> > jcs-users-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail:
>> > jcs-users-help@jakarta.apache.org
>> >
>> >
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>>
>
>_________________________________________________________________
>Dont just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by justin zhou <am...@hotmail.com>.
Thanks Aaron.
I kind of agree the mismatch message can be just printed out of the
synchronized block.
I put the jcs-1.2.7 in place together with existing jboss dependency jar
files:
concurrent.jar //Implementation-Version: 1.3.3 compiled: May 11 2004
commons-logging.jar //Implementation-Version: 1.0.3
So far so good.
Just curious about the error I mentioned previously:
[org.apache.jcs.engine.memory.lru.LRUMemoryCache] (TP-
Processor14:sysop_bari) update: map does not contain key:
PK_R-resource-file:/ImageMerchant/de
ploy/mc.war/skins/default/actions/zip.gif
This only happened when the border value of the cache pool (size 100)
reached. The secondary disk cache is disabled in our case. What can be the
cause of the key-not-exist error? Is it normal to happen?
Justin
>From: Aaron Smuts <as...@yahoo.com>
>Reply-To: "JCS Users List" <jc...@jakarta.apache.org>
>To: JCS Users List <jc...@jakarta.apache.org>
>Subject: Re: LRUMemoryCache size mismatch
>Date: Sun, 19 Feb 2006 18:05:57 -0800 (PST)
>
>The fix to prevent the erroneous error logging was in
>this revision, which is not in 1.2.6.1:
>
>http://svn.apache.org/viewcvs.cgi?rev=351876&view=rev
>
>Here is a diff, but is doesn't give much context:
>
>http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/src/java/org/apache/jcs/engine/memory/lru/LRUMemoryCache.java?r1=351876&r2=332199&diff_format=h
>
>Cheers,
>
>Aaron
>
>--- justin zhou <am...@hotmail.com> wrote:
>
> > Hi,
> >
> > I seen following error in our web-app. It is a
> > cocoon web-app and running
> > inside jboss. the jar file
> > is jcs-1.2.6.1.jar. Went through the mailing list,
> > but could not find a
> > straight answer for this. Will latest jcs-1.2.7.0
> > solve this? I seen some
> > consistency checking code changes added there on
> > Dec. 3. 2005, but do not
> > know if it is a bug or something else.
> >
> > 2006-02-17 14:14:57,457 289809866 ERROR
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: map does not contain
> > key:
> > PK_R-resource-file:/ImageMerchant/de
> > ploy/mc.war/skins/default/actions/zip.gif
> > 2006-02-17 14:14:57,458 289809867 WARN
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: remove failed for
> > key:
> > PK_R-resource-file:/ImageMerchant/deplo
> > y/mc.war/skins/default/actions/zip.gif
> > 2006-02-17 14:14:57,460 289809869 ERROR
> > [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> > (TP-
> > Processor14:sysop_bari) update: After spool, size
> > mismatch: map.size() = 99,
> > linked list size
> > = 98
> >
> >
> > Thanks,
> >
> > Justin
> >
> >
>_________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar ďż˝
>get
> > it now!
> >
>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > jcs-users-help@jakarta.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by Aaron Smuts <as...@yahoo.com>.
The fix to prevent the erroneous error logging was in
this revision, which is not in 1.2.6.1:
http://svn.apache.org/viewcvs.cgi?rev=351876&view=rev
Here is a diff, but is doesn't give much context:
http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/src/java/org/apache/jcs/engine/memory/lru/LRUMemoryCache.java?r1=351876&r2=332199&diff_format=h
Cheers,
Aaron
--- justin zhou <am...@hotmail.com> wrote:
> Hi,
>
> I seen following error in our web-app. It is a
> cocoon web-app and running
> inside jboss. the jar file
> is jcs-1.2.6.1.jar. Went through the mailing list,
> but could not find a
> straight answer for this. Will latest jcs-1.2.7.0
> solve this? I seen some
> consistency checking code changes added there on
> Dec. 3. 2005, but do not
> know if it is a bug or something else.
>
> 2006-02-17 14:14:57,457 289809866 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: map does not contain
> key:
> PK_R-resource-file:/ImageMerchant/de
> ploy/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,458 289809867 WARN
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: remove failed for
> key:
> PK_R-resource-file:/ImageMerchant/deplo
> y/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,460 289809869 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: After spool, size
> mismatch: map.size() = 99,
> linked list size
> = 98
>
>
> Thanks,
>
> Justin
>
>
_________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar �
get
> it now!
>
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by Aaron Smuts <as...@yahoo.com>.
>From what I can remember, this was actually a logging
problem and there was no genuine error. I'll try to
get a more complete explanation of the fix.
Unfortunately, we only started recording the major
changes since 1.2.6.6 on the changes page:
http://jakarta.apache.org/jcs/changes-report.html
There have been many small improvements since 1.2.6.1.
Please upgrade to 1.2.7.0
Let me know if you see the issue with the new version.
I haven't encountered it and am running 1.2.6.7 and
1.2.7.0 in production.
Aaron
--- justin zhou <am...@hotmail.com> wrote:
> Hi,
>
> I seen following error in our web-app. It is a
> cocoon web-app and running
> inside jboss. the jar file
> is jcs-1.2.6.1.jar. Went through the mailing list,
> but could not find a
> straight answer for this. Will latest jcs-1.2.7.0
> solve this? I seen some
> consistency checking code changes added there on
> Dec. 3. 2005, but do not
> know if it is a bug or something else.
>
> 2006-02-17 14:14:57,457 289809866 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: map does not contain
> key:
> PK_R-resource-file:/ImageMerchant/de
> ploy/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,458 289809867 WARN
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: remove failed for
> key:
> PK_R-resource-file:/ImageMerchant/deplo
> y/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,460 289809869 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: After spool, size
> mismatch: map.size() = 99,
> linked list size
> = 98
>
>
> Thanks,
>
> Justin
>
>
_________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar �
get
> it now!
>
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: LRUMemoryCache size mismatch
Posted by Aaron Smuts <as...@yahoo.com>.
Perhaps we are talking about two different things.
The bug fix I was talking about was in reference to a
warning that should not have been logged. The fix was
to move the check inside the synchronized block.
What you are seeing may be different. I'm not sure.
What is you key? Is it a string or some other kind of
object?
Are you seeing the same message in 1.2.7.0.?
Aaron
--- justin zhou <am...@hotmail.com> wrote:
> Hi,
>
> I seen following error in our web-app. It is a
> cocoon web-app and running
> inside jboss. the jar file
> is jcs-1.2.6.1.jar. Went through the mailing list,
> but could not find a
> straight answer for this. Will latest jcs-1.2.7.0
> solve this? I seen some
> consistency checking code changes added there on
> Dec. 3. 2005, but do not
> know if it is a bug or something else.
>
> 2006-02-17 14:14:57,457 289809866 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: map does not contain
> key:
> PK_R-resource-file:/ImageMerchant/de
> ploy/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,458 289809867 WARN
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: remove failed for
> key:
> PK_R-resource-file:/ImageMerchant/deplo
> y/mc.war/skins/default/actions/zip.gif
> 2006-02-17 14:14:57,460 289809869 ERROR
> [org.apache.jcs.engine.memory.lru.LRUMemoryCache]
> (TP-
> Processor14:sysop_bari) update: After spool, size
> mismatch: map.size() = 99,
> linked list size
> = 98
>
>
> Thanks,
>
> Justin
>
>
_________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar get
> it now!
>
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org