Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C7F5C58D for ; Tue, 2 Jul 2013 12:19:22 +0000 (UTC) Received: (qmail 28716 invoked by uid 500); 2 Jul 2013 12:19:22 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 28298 invoked by uid 500); 2 Jul 2013 12:19:18 -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 28290 invoked by uid 99); 2 Jul 2013 12:19:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 12:19:17 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rick.hillegas@oracle.com designates 141.146.126.69 as permitted sender) Received: from [141.146.126.69] (HELO aserp1040.oracle.com) (141.146.126.69) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 12:19:08 +0000 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r62CIlMA002469 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Jul 2013 12:18:48 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r62CIkQS002286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Jul 2013 12:18:47 GMT Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r62CIkHG002280 for ; Tue, 2 Jul 2013 12:18:46 GMT Received: from dhcp-amer-vpn-adc-anyconnect-10-154-154-219.vpn.oracle.com (/10.154.154.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Jul 2013 05:18:46 -0700 Message-ID: <51D2C526.1020805@oracle.com> Date: Tue, 02 Jul 2013 05:18:46 -0700 From: Rick Hillegas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: derby-user@db.apache.org Subject: Re: Is there some way to shut down a Derby database faster? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Virus-Checked: Checked by ClamAV on apache.org On 7/1/13 6:01 PM, Trejkaz wrote: > Hi all. > > Is there some way to shut down a Derby database in a faster way? > > The current ;shutdown=true we're using is doing a checkpoint, which > seems to be a particularly expensive operation. > > I can't rely on the "if you don't want to do the checkpoint, just > don't shut it down" approach, because this won't release file handles > and when the user closes the database they expect to be able to move > the files immediately after. > > TX > If you simply exit the VM without requesting an orderly shutdown, then the checkpoint won't be performed. However, the cleanup performed by that checkpoint still has to be performed. It will be performed the next time you boot the database. My experience is that if you always skip the orderly shutdown, then the time required to boot the database grows progressively longer until it is intolerable. Full disclosure: I haven't tried this experiment for a long time and there may have been improvements in this area. Nevertheless, orderly shutdown is the recommended practice. Hope this helps, -Rick