Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6FDD8E6F for ; Tue, 16 Aug 2011 13:00:16 +0000 (UTC) Received: (qmail 26408 invoked by uid 500); 16 Aug 2011 13:00:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 26358 invoked by uid 500); 16 Aug 2011 13:00:16 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 26351 invoked by uid 99); 16 Aug 2011 13:00:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 13:00:15 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [65.55.88.14] (HELO TX2EHSOBE008.bigfish.com) (65.55.88.14) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 13:00:06 +0000 Received: from mail168-tx2-R.bigfish.com (10.9.14.237) by TX2EHSOBE008.bigfish.com (10.9.40.28) with Microsoft SMTP Server id 14.1.225.22; Tue, 16 Aug 2011 12:59:44 +0000 Received: from mail168-tx2 (localhost.localdomain [127.0.0.1]) by mail168-tx2-R.bigfish.com (Postfix) with ESMTP id 34D4918D0130 for ; Tue, 16 Aug 2011 12:59:44 +0000 (UTC) X-SpamScore: 0 X-BigFish: VPS0(zzzz1202hzzz2dh2a8h668h839h944h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:74.62.37.82;KIP:(null);UIP:(null);IPVD:NLI;H:CPHUB1.canoga.com;RD:rrcs-74-62-37-82.west.biz.rr.com;EFVD:NLI Received: from mail168-tx2 (localhost.localdomain [127.0.0.1]) by mail168-tx2 (MessageSwitch) id 1313499546848273_29986; Tue, 16 Aug 2011 12:59:06 +0000 (UTC) Received: from TX2EHSMHS019.bigfish.com (unknown [10.9.14.247]) by mail168-tx2.bigfish.com (Postfix) with ESMTP id 87E94BF010A for ; Tue, 16 Aug 2011 12:56:52 +0000 (UTC) Received: from CPHUB1.canoga.com (74.62.37.82) by TX2EHSMHS019.bigfish.com (10.9.99.119) with Microsoft SMTP Server (TLS) id 14.1.225.22; Tue, 16 Aug 2011 12:56:49 +0000 Received: from vserver1.canoga.com ([169.254.2.6]) by CPHUB1.canoga.com ([172.16.1.93]) with mapi; Tue, 16 Aug 2011 05:57:33 -0700 From: "Bergquist, Brett" To: "derby-dev@db.apache.org" Date: Tue, 16 Aug 2011 05:56:43 -0700 Subject: Question on unloading in an embedded environment Thread-Topic: Question on unloading in an embedded environment Thread-Index: AcxcE/LIQSJa1auxTTW9wjP3GcD6Cw== Message-ID: <97EB699F861AD841B5908C7CA9C956560160A03B5AA7@VSERVER1.canoga.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.1307-6.500.1024-18326.005 x-tm-as-result: No--39.405700-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: canoga.com X-Virus-Checked: Checked by ClamAV on apache.org I am writing a database copy utility that is built upon the dblook utility = and using the SYSCS_UTIL.SYSCS_EXPORT_TABLE and SYSCS_UTIL.SYSCS_IMPORT_TA= BLE procedures and I have this mostly working. When running this on a larg= e database (110Gb) I am getting an OutOfMemory exception. I have the utili= ty setup to use up to 8192Mb of memory so somewhere there is a problem. I = am running this again with the -XX:+HeapDumpOnOutOfMemoryError switch to se= e if I can get a picture on where it is leaking but it will take about 6 ho= urs to get to this point. In the mean time, assuming the error is not in my utility, I would like to = potentially shutdown the database and restart it to try to work around the = OOME. I am running the database engine in embedded mode and see the docume= ntation to shutdown the database, but I also see the following in the Derby= 10.8 Reference manual page 293: "With the embedded driver, if your application shuts down Derby or calls th= e DriverManager.unload method, and you then want to reload the driver, call t= he Class.forName().newInstance() method to do so:" When I look at the Javadoc for the DriverManager class, I do not find an "u= nload" method. So what is this documentation referring to? Thanks Brett