ColdBox Framework Forums Notification: Post to Missing cached objects

Title: RE: Missing cached objects
Thread: Missing cached objects
Forum: Need Help?
Conference: ColdBox
User: lmajano I really can't see anything on it for now. I do the same thing.

Hmm,
I would
try doing a try/catch on the onrequest start and on the catch, try to dump out
the contents of the cache to see what is on the cache.
getColdBoxOCM().getObjectPool()

That gives you the entire pool of objects.
Also, what version of coldbox are you using?

Memory problems can be tricky.
Also, since you are using the coldbox cache defaults, there are some memory
limits, using the FreeMemoryPercentageThreshold

[code]
<Cache>
<ObjectDefaultTimeout>20</ObjectDefaultTimeout>
<ObjectDefaultLastAccessTimeout>5</ObjectDefaultLastAccessTimeout>
<ReapFrequency>1</ReapFrequency>
    <MaxObjects>0</MaxObjects>
<EvictionPolicy>LRU</EvictionPolicy>
<FreeMemoryPercentageThreshold>0</FreeMemoryPercentageThreshold>
</Cache>
[/code]

The default in cbox 2.5.2 is 3%, I believe in 2.5.1 was 10% which was
rather high. I suggest overriding the cache settings with something more along
the lines of what your memory is. If not, you can disable the Memory Threshold
by setting it to 0.
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=57DA1F8F-FF65-CEF6-65C1BA75E55301AE