Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 72669 invoked from network); 8 Aug 2006 03:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 03:16:46 -0000 Received: (qmail 47992 invoked by uid 500); 8 Aug 2006 03:16:45 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 47961 invoked by uid 500); 8 Aug 2006 03:16:45 -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 47950 invoked by uid 99); 8 Aug 2006 03:16:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 20:16:45 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 20:16:44 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 681B41A981A; Mon, 7 Aug 2006 20:16:24 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r429550 - in /db/derby/code/trunk/java/testing: README.htm org/apache/derbyTesting/functionTests/harness/NetServer.java Date: Tue, 08 Aug 2006 03:16:23 -0000 To: derby-commits@db.apache.org From: fuzzylogic@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060808031624.681B41A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: fuzzylogic Date: Mon Aug 7 20:16:23 2006 New Revision: 429550 URL: http://svn.apache.org/viewvc?rev=429550&view=rev Log: DERBY-1614: Do not set any heap size flags or network server apart from those specified by the jvmflags property. Modified: db/derby/code/trunk/java/testing/README.htm db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java Modified: db/derby/code/trunk/java/testing/README.htm URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/README.htm?rev=429550&r1=429549&r2=429550&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/README.htm (original) +++ db/derby/code/trunk/java/testing/README.htm Mon Aug 7 20:16:23 2006 @@ -1586,7 +1586,9 @@
  • jvmflags - sets specific jvm properties for each jvm instantiated by the -test harness, for instance for setting initial memory, and heap size, or other properties +test harness, for instance for setting initial and maximum heap size (note that setting +only initial size or only max size may cause incompatibilities with heap settings picked +up from harness property files or from the command line), or other properties that need to be passed on to the jvm, separated by '^'. This property can be set on the commandline for either RunTest or RunSuite, or in one of the properties files used by the tests. The property jvmflags @@ -1595,7 +1597,7 @@ because the 'highest' level properties are passed to the jvm last. Setting this property for a test that runs with useprocess=false cannot have any effect. Example:
    - java -Djvmflags=ms32M^-mx128M + java -Djvmflags=-Xms32M^-Xmx128M org.apache.derbyTesting.functionTests.RunTest lang/streamingColumn.java

  • Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java?rev=429550&r1=429549&r2=429550&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java Mon Aug 7 20:16:23 2006 @@ -164,22 +164,10 @@ if ( (clPath != null) && (clPath.length()>0) ) jvm.setClasspath(clPath); - boolean setJvmFlags = false; if ( (jvmflags != null) && (jvmflags.length()>0) ) { jvm.setFlags(jvmflags); - setJvmFlags = true; - } - - - if (!jvmName.equals("jview")) - { - if (setJvmFlags && ((jvmflags.indexOf("-ms") == -1) || (jvmflags.indexOf("-Xms") == -1))) - // only setMs if no starting memory was given - jvm.setMs(16*1024*1024); // -ms16m - if (setJvmFlags && ((jvmflags.indexOf("-mx") == -1) || (jvmflags.indexOf("-Xmx") == -1))) - // only setMx if no max memory was given - jvm.setMx(32*1024*1024); // -mx32m - jvm.setNoasyncgc(true); // -noasyncgc + // Set no flags by default (DERBY-1614). + // The jvmflags property can be used to set any kind of JVM option. } jvmProps.addElement("derby.system.home=" + homeDirName);