Files
gerrit/Documentation
Shawn O. Pearce efaf979625 Tweak cache defaults to be more reasonable
We reduce the default cache.diff.memoryLimit as the entries are now
rather large, 1024 may rip through some JVMs entire memory heap and
leave nothing left.  Since there is no way to tell Ehcache that one
entry is larger than another and force expire earlier than it wants
we sort of get stuck with needing to cap the entry count.

We also reduce the cache.openid.memoryLimit as this cache typically
only has 20 or so entries on review.source.android.com, and most of
them are likely expired.  Due to the very short TTL on the entries
the cache only needs to hold the number of authentications which we
do in a 5 minute window, and this is a fairly low figure.

We also modify the web_sessions cache to prefer an LRU expire over
an LFR expire.  This should keep help accessed sessions to be more
likely to stay in memory over being evicted when the cache gets to
a larger size.

Bug: GERRIT-266
Change-Id: I6e2e67d4e7f0bb2131005627a1e0d446d9990b60
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-09-02 18:16:35 -07:00
..
2009-07-21 09:52:09 -07:00
2009-07-27 18:14:25 -07:00