Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 32296 invoked from network); 5 Aug 2008 18:34:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 18:34:15 -0000 Received: (qmail 79362 invoked by uid 500); 5 Aug 2008 18:34:14 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 79342 invoked by uid 500); 5 Aug 2008 18:34:14 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 79333 invoked by uid 99); 5 Aug 2008 18:34:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 11:34:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 18:33:27 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E58AA238898E; Tue, 5 Aug 2008 11:33:54 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r682853 - /db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita Date: Tue, 05 Aug 2008 18:33:54 -0000 To: derby-commits@db.apache.org From: chaase3@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080805183354.E58AA238898E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chaase3 Date: Tue Aug 5 11:33:54 2008 New Revision: 682853 URL: http://svn.apache.org/viewvc?rev=682853&view=rev Log: DERBY-3612: Developer's Guide needs correction on garbage collection Merged DERBY-3612.diff to 10.4 docs branch from trunk revision 666226. Modified: db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita Modified: db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita URL: http://svn.apache.org/viewvc/db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita?rev=682853&r1=682852&r2=682853&view=diff ============================================================================== --- db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita (original) +++ db/derby/docs/branches/10.4/src/devguide/tdevdvlp20349.dita Tue Aug 5 11:33:54 2008 @@ -41,10 +41,12 @@ the JVM needs to unload org.apache.derby.jdbc.EmbeddedDriver, so that it can reload it when it restarts . (Loading the local driver starts .)

You -cannot explicitly request that the JVM unload a class, but you can ensure -that the EmbeddedDriver class is unloaded by using a System.gc() to -force it to garbage collect classes that are no longer needed. Running with -nogc or -noclassgc definitely prevents the class from being unloaded and makes you unable to restart EmbeddedDriver class by calling +System.gc() to request it to garbage collect classes +that are no longer needed. Running with the non-standard option +-Xnoclassgc definitely prevents the class from +being unloaded and makes you unable to restart in the same JVM.

It is also possible to shut down a single database instead of the entire system. See .