Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 35337 invoked from network); 16 Aug 2006 12:57:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 12:57:55 -0000 Received: (qmail 96895 invoked by uid 500); 16 Aug 2006 12:57:55 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 96876 invoked by uid 500); 16 Aug 2006 12:57:55 -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 96865 invoked by uid 99); 16 Aug 2006 12:57:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 05:57:55 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.125.87] (HELO web38711.mail.mud.yahoo.com) (209.191.125.87) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 16 Aug 2006 05:57:53 -0700 Received: (qmail 45870 invoked by uid 60001); 16 Aug 2006 12:57:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pXE+YYvD0Z/e9CL3WK2La2ySnO0b6zPyBONXbgkhUWtjtkDUs4ducCWmsWIV5x2WIiPb9b1Qb8CRdlh46ZZkNx1xRrIC5cJfHZMTz3hcIHL0hZ5xlxDlZUArKJlmQDu/krXEp/POPD4q5tkDYB7pyMYGp3Df2kiBO/a9k/4t0+o= ; Message-ID: <20060816125733.45868.qmail@web38711.mail.mud.yahoo.com> Received: from [72.229.165.202] by web38711.mail.mud.yahoo.com via HTTP; Wed, 16 Aug 2006 05:57:33 PDT Date: Wed, 16 Aug 2006 05:57:33 -0700 (PDT) From: Aaron Smuts Subject: RE: some newbie user questions To: JCS Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Yes, I'm working on a fix. . . . . Becasue of this problem we have scripts in place that waits and kill the process if it takes more than 30 seconds or so. . . . After doing a thread dump (kill -3 ) you can see that the only non daemon thread is rmi specific. The rmi client needs to shutdown properly. I'll try to sove it soon. Cheers, Aaron --- Horton Simon wrote: > HI, > > Sorry to hop onto your discussion Russell and ask a > question, but, > reading the following from Aaron: > > >The remote cache client does not shutdown > >properly, forcing you to kill the application. > > Are there any plans to fix this in the next release? > If so, do you have > a rough idea of when this might be fixed, I would > appreciate it if you > could tell me. > > This bug bear is making things messy for a > production application > shutdown. > > Cheers, > Simon > > > -----Original Message----- > From: Russell East [mailto:reast@esri.com] > Sent: Wednesday, August 16, 2006 3:08 AM > To: JCS Users List > Subject: Re: some newbie user questions > > Thanks for your reply Aaron. > > > I run upwards of 5 or 6 tomcat instances running > > different applications each using JCS on a single > box. > > If they are using distribution plugins that > require > > them to bind to aprticular port, then I just > configure > > them to listen to different ports. > Just to confirm. In your system, do all the (5 or > 6) tomcat instances > use precisely the same cache.ccf? In other words, > are they using > exactly the same cache on disk, and exactly the same > cached data? That > > is what I want to do - well, maybe not quite 5 or 6 > instances, but at > least 2 or 3. If they do, I'm wondering how you > get all the instances > to synch the cache data and key index across the > instance's in-memory > cache - or, does it just work? > > -- Russell > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Aaron Smuts wrote: > > --- Russell East wrote: > > Couple of questions: > > > >> 1) I suppose that only one application > instance > >> at a time, on a > >> particular computer, can reliably use a jcs > region, > >> right? > >> > > > > No. I run upwards of 5 or 6 tomcat instances > running > > different applications each using JCS on a single > box. > > If they are using distribution plugins that > require > > them to bind to aprticular port, then I just > configure > > them to listen to different ports. > > > > > >> 2) is there any code to synch access to the > same > >> cache region within > >> 2 or more apps running on the same machine? > >> > > > > Yes. Just have them listen to different ports if > use > > the tcp lateral or the rmi remote cache. > > > > > >> 3) when the application ends, I call > >> JCS.dispose() which takes > >> several seconds to complete, presumably > defragging > >> the cache data - is > >> there a way to prevent defragging upon dispose? > >> Would it be advisable > >> to do that? > >> > > > > No you can't stop it right now, but you can set a > max > > wait time. The remote cache client does not > shutdown > > properly, forcing you to kill the application. > > > > > >> 4) correspondingly, is there a way to flush > >> memory to disk every now > >> and then, not necessarily defragging? > >> > > > > Yes, there is a brand new method that will do > this. > > You can tell it the number to free. You can pass > it > > the size. It's called freeMemoryElements. > > > > > >> That'll will do for starters I think - thanks in > >> advance. j > >> -- Russell > >> > > > > Cheers, > > > > Aaron > > > > > --------------------------------------------------------------------- > > 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 > > > This message and any files transmitted with it are > confidential and intended solely for the use of the > individual or entity to whom they are addressed. If > you have received this message in error please > delete it and any files transmitted with it, after > notifying postmaster@uk.mizuho-sc.com > Any opinions expressed in this message may be those > of the author and not necessarily those of the > company. The company accepts no responsibility for > the accuracy or completeness of any information > contained herein. This message is not intended to > create legal relations between the company and the > recipient. > Recipients should please note that messages sent via > the Internet may be intercepted and that caution > should therefore be exercised before dispatching to > the company any confidential or sensitive > information. > Mizuho International plc Bracken House, One Friday > Street, London EC4M 9JA. TEL. 020 72361090. Wholly > owned subsidiary of Mizuho Securities Co., Ltd. > Member of Mizuho Financial Group. Authorised and > regulated by the Financial Services Authority. > Member of the London Stock Exchange. > > Registered in England No. 1203696. Registered office > as above. > > > --------------------------------------------------------------------- > 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