Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 58844 invoked from network); 23 Sep 2005 17:53:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Sep 2005 17:53:36 -0000 Received: (qmail 8821 invoked by uid 500); 23 Sep 2005 17:53:35 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 8799 invoked by uid 500); 23 Sep 2005 17:53:35 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 8786 invoked by uid 99); 23 Sep 2005 17:53:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2005 10:53:35 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [143.165.201.19] (HELO maplee.tiaa-cref.org) (143.165.201.19) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2005 10:53:42 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5C067.A81158C4" Subject: Cache Size Date: Fri, 23 Sep 2005 13:53:08 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cache Size Thread-Index: AcXAZ6ozVjQPwTylRNCs+mZ5cGMtBg== From: "Hoying, Ken" To: X-OriginalArrivalTime: 23 Sep 2005 17:53:09.0430 (UTC) FILETIME=[A8B18D60:01C5C067] X-Loop-Check: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5C067.A81158C4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am trying to tune my cache settings. In particular the number of objects= that I want to allow in the cache. I would like to determine how large my= cache is in bytes while debugging so that I can set the max number of elem= ents in the cache appropriately. The API seems to indicate that I can get = the size of an item in the cache with the getSize() method. However, this = is not working for me. I always get 0. What am I doing wrong? BTW.. I am using the LRUMemoryCache. Thanks in advance, Ken ************************************************************** This message, including any attachments, contains confidential information = intended for a specific individual and purpose, and is protected by law. I= f you are not the intended recipient, please contact sender immediately by = reply e-mail and destroy all copies. You are hereby notified that any disc= losure, copying, or distribution of this message, or the taking of any acti= on based on it, is strictly prohibited. TIAA-CREF ************************************************************** ------_=_NextPart_001_01C5C067.A81158C4--