Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 75649 invoked from network); 23 Aug 2005 15:43:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2005 15:43:47 -0000 Received: (qmail 70229 invoked by uid 500); 23 Aug 2005 15:43:32 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 70177 invoked by uid 500); 23 Aug 2005 15:43:32 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 70115 invoked by uid 99); 23 Aug 2005 15:43:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2005 08:43:31 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.182.145] (HELO e5.ny.us.ibm.com) (32.97.182.145) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2005 08:43:49 -0700 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e5.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j7NFhU2F010405 for ; Tue, 23 Aug 2005 11:43:30 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j7NFhTcB261448 for ; Tue, 23 Aug 2005 11:43:30 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j7NFhTb7005100 for ; Tue, 23 Aug 2005 11:43:29 -0400 Received: from [127.0.0.1] (DMCSDJDT41P.usca.ibm.com [9.72.133.46]) by d01av04.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j7NFhPNi004574 for ; Tue, 23 Aug 2005 11:43:26 -0400 Message-ID: <430B4417.1090109@debrunners.com> Date: Tue, 23 Aug 2005 08:43:19 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: Derby server health probing References: <5dc22fbdcfaba8804d8e9600d77b121b@sun.com> In-Reply-To: <5dc22fbdcfaba8804d8e9600d77b121b@sun.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Xavier Vigouroux wrote: > Hi, > > We use a derby server in an High Availability context. Thus, we need to > test if derby server is in a good shape or not. The result of this > repetitive question will imply a fail-over or not. > > we thought about two solutions: > > 1/ create an agent to insert/select/delete an entry in a table > 2/ create a stored procedure doing a finer job. > > these solutions do not satisfy us as: > > o a JVM needs to be created for a very short duration and repetitively > o it's CPU consuming. > > So, do you think of another solution that would prove the derby server > is in a good shape, without consuming too much resources. There's no requirement for a client of the network server to be written in Java. It should be possible to write a lightweight C program that sends and receives a ping tcp/ip message to the network server. Dan.