Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 98844 invoked from network); 15 May 2008 17:46:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 17:46:51 -0000 Received: (qmail 17790 invoked by uid 500); 15 May 2008 17:46:53 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 17776 invoked by uid 500); 15 May 2008 17:46:53 -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 17760 invoked by uid 99); 15 May 2008 17:46:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 10:46:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmedina@e-dialog.com designates 64.28.75.202 as permitted sender) Received: from [64.28.75.202] (HELO corp-mail.e-dialog.com) (64.28.75.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 17:46:07 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JCS data retrieval is slower than database!! Date: Thu, 15 May 2008 13:46:19 -0400 Message-ID: <9DD36C99332AB7438F8D73C048D8C62CB2A0FB@sneezy.ad.e-dialog.com> In-Reply-To: <29366.29463.qm@web34308.mail.mud.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JCS data retrieval is slower than database!! Thread-Index: Aci2q9tHBgl2pb4rQbSsUqoRXdGZEgABzrdQ References: <29366.29463.qm@web34308.mail.mud.yahoo.com> From: "Jorge Medina" To: "JCS Users List" X-Virus-Checked: Checked by ClamAV on apache.org If you just want a memory-only cache, then you do not need Disk Cache (DC) nor lateral cache (LTCP). As for the concepts, they are explained at http://jakarta.apache.org/jcs/getting_started/intro.html -----Original Message----- From: Debasis Bhattacharyya [mailto:debsonchat@yahoo.com]=20 Sent: Thursday, May 15, 2008 10:47 AM To: jcs-users@jakarta.apache.org Subject: JCS data retrieval is slower than database!! Hi, =20 I am trying to get a grip over JCS. I am able to get it working but not sure what I am doing wrong. I am putting 1000 objects in JCS. While retrieving these data, JCS is giving slower performance than what database is giving. Following is my configuration file. Any idea, tip, suggestion is greatly appreciated. Also, could you refer me to any study material about JCS. The terminologies like region, LTCP, DC are not very clear to me. =20 # DEFAULT CACHE REGION jcs.default=3DDC,LTCP jcs.default.cacheattributes=3D org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=3D10000 jcs.default.cacheattributes.MemoryCacheName=3D org.apache.jcs.engine.memory.lru.LRUMemoryCache # PRE-DEFINED CACHE REGIONS jcs.region.testCache1=3DDC,LTCP jcs.region.testCache1.cacheattributes=3D org.apache.jcs.engine.CompositeCacheAttributes jcs.region.testCache1.cacheattributes.MaxObjects=3D1000 jcs.region.testCache1.cacheattributes.MemoryCacheName=3D org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.region.testCache1.cacheattributes.UseMemoryShrinker=3Dtrue jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600 jcs.region.testCache1.cacheattributes.ShrinkerIntervalSeconds=3D60 jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=3D500 jcs.region.testCache1.elementattributes=3Dorg.apache.jcs.engine.ElementAt= t ributes jcs.region.testCache1.elementattributes.IsEternal=3Dfalse =20 # AVAILABLE AUXILIARY CACHES jcs.auxiliary.DC=3D org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory jcs.auxiliary.DC.attributes=3D org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=3DC:/Debs/cache jcs.auxiliary.DC.attributes.maxKeySize=3D100000 jcs.auxiliary.LTCP=3D org.apache.jcs.auxiliary.lateral.LateralCacheFactory jcs.auxiliary.LTCP.attributes=3D org.apache.jcs.auxiliary.lateral.LateralCacheAttributes jcs.auxiliary.LTCP.attributes.TransmissionTypeName=3DTCP jcs.auxiliary.LTCP.attributes.TcpServers=3Dlocalhost:1111 jcs.auxiliary.LTCP.attributes.TcpListenerPort=3D1110 jcs.auxiliary.LTCP.attributes.PutOnlyMode=3Dfalse =20 --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org