Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 18340 invoked from network); 15 Sep 2009 18:55:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 18:55:25 -0000 Received: (qmail 75720 invoked by uid 500); 15 Sep 2009 18:55:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75684 invoked by uid 500); 15 Sep 2009 18:55:25 -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 75676 invoked by uid 99); 15 Sep 2009 18:55:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 18:55:25 +0000 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 18:55:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 97DAE234C1E9 for ; Tue, 15 Sep 2009 11:54:57 -0700 (PDT) Message-ID: <1228641602.1253040897621.JavaMail.jira@brutus> Date: Tue, 15 Sep 2009 11:54:57 -0700 (PDT) From: "Francois Orsini (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4360) Avoid memory exhaustion when running UpgradeTrajectoryTest w/-DderbyTesting.allTrajectories=true In-Reply-To: <1177451917.1251207119916.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755637#action_12755637 ] Francois Orsini commented on DERBY-4360: ---------------------------------------- It might also be interesting to generate a heap dump (-XX:+HeapDumpOnOutOfMemoryError) and profile it using jhat or VisualVM to verify what's really being accumulated onto the heap. Either one of the 2 proposals sounds good - #2 might be best for a shorter overall test time duration. > Avoid memory exhaustion when running UpgradeTrajectoryTest w/-DderbyTesting.allTrajectories=true > ------------------------------------------------------------------------------------------------ > > Key: DERBY-4360 > URL: https://issues.apache.org/jira/browse/DERBY-4360 > Project: Derby > Issue Type: Sub-task > Components: Test > Affects Versions: 10.6.0.0 > Environment: JVM: > Sun Microsystems Inc. > java version "1.5.0_14" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) > Java HotSpot(TM) Server VM (build 1.5.0_14-b03 mixed mode 32-bit) > Reporter: Ole Solberg > > When run with -XX:MaxPermSize=1024m -Xmx1024m -DderbyTesting.allTrajectories=true we get 'Exception in thread "main" java.lang.OutOfMemoryError: Java heap space' after ~435 out of 4083 trajectories. > When increasing to XX:MaxPermSize=1024m -Xmx2048m we reach ~930 out of 4083 trajectories, > without OOM but with extreme upgrade times: > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.1.2.1 -> 10.1.3.1 -> 10.2.1.6 -> 10.2.2.0 -> 10.3.1.4 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.1.1 -> 10.5.3.0 ( hard, hard, hard, hard, hard, hard, hard, hard, hard, hard, hard, hard ) > used 10809 ms . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.1.2.1 -> 10.1.3.1 -> 10.2.1.6 -> 10.2.2.0 -> 10.3.1.4 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.1.1 ( hard, hard, hard, hard, hard, hard, hard, hard, hard, hard, hard ) > used 3871 ms . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.1.2.1 -> 10.1.3.1 -> 10.2.1.6 -> 10.2.2.0 -> 10.3.1.4 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.3.0 ( hard, hard, hard, hard, hard, hard, hard, hard, hard, hard, hard ) > used 3049 ms . > . > . > . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.2.2.0 -> 10.3.1.4 ( hard, hard, hard, hard ) > used 95779 ms . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.2.2.0 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.1.1 -> 10.5.3.0 ( hard, hard, hard, hard, hard, hard, hard, hard ) > used 167768 ms . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.2.2.0 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.1.1 ( hard, hard, hard, hard, hard, hard, hard ) > used 148693 ms . > testTrajectory DEBUG: Testing trajectory: 10.0.2.1 -> 10.1.1.0 -> 10.2.2.0 -> 10.3.3.0 -> 10.4.1.3 -> 10.4.2.0 -> 10.5.3.0 ( hard, hard, hard, hard, hard, hard, hard ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.