Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 0C9FB73A3 for ; Thu, 1 Dec 2011 10:06:07 +0000 (UTC) Received: (qmail 21134 invoked by uid 500); 1 Dec 2011 10:06:06 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 21096 invoked by uid 500); 1 Dec 2011 10:06:06 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 21088 invoked by uid 99); 1 Dec 2011 10:06:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 10:06:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bdekruijff@gmail.com designates 209.85.210.49 as permitted sender) Received: from [209.85.210.49] (HELO mail-pz0-f49.google.com) (209.85.210.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 10:06:01 +0000 Received: by dajx4 with SMTP id x4so70368daj.22 for ; Thu, 01 Dec 2011 02:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UGVKuiKEzKT43CK6ENNkiZ0JyQF6qDBtnx/r45hvjzo=; b=LEZtGbRDWzRkVwZol5Cm6VczEyNJwBn7bgC7kvtAP/rLjKXGb84eSWHYjP+PvCwhgl mCi9AIvBagEHgjz+dHgc4ABWrYYbr+fKQJPoo5Dh1rKdYNlA1/OK5qRs9PfKyejBTQhE RPTZLToQ2PbDTey1s5m6frutiOnWTONvXos6k= MIME-Version: 1.0 Received: by 10.68.40.170 with SMTP id y10mr3647841pbk.78.1322733941093; Thu, 01 Dec 2011 02:05:41 -0800 (PST) Received: by 10.68.11.202 with HTTP; Thu, 1 Dec 2011 02:05:41 -0800 (PST) In-Reply-To: <4ED7435E.3000108@ascert.com> References: <4ED7435E.3000108@ascert.com> Date: Thu, 1 Dec 2011 11:05:41 +0100 Message-ID: Subject: Re: Anyone else get java.lang.OutOfMemoryError: PermGen space on felix build? From: Bram de Kruijff To: dev@felix.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Rob On Thu, Dec 1, 2011 at 10:05 AM, Rob Walker wrote: > Seem to get these quite a lot on felix build on my machine. > > Didn't want to raise a JIRA issue unless it's me being a dumb user and > missing some obvious fix. I noticed a few other Apache projects log this, > and the answer is a simple/logical increase in java memory through runtim= e Indeed the simple answer is to set MAVEN_OPTS to something like "-Xms512m -Xmx1024m -XX:MaxPermSize=3D512M" > settings. Wondering though if this is needed, maybe our build settings co= uld > include it? You might try to tell the compiler plugin to fork. That will probably save a lot of mess in the permgen of the main process. Regards, Bram > Typically it trips over when it reaches http build of a full/clean build = of > SVN trunk e.g. > > =A0 =A0 [exec] [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > (default-compile) on project > =A0org.apache.felix.http.bridge: Compilation failure > =A0 =A0 [exec] [ERROR] Failure executing javac, but could not parse the e= rror: > =A0 =A0 [exec] [ERROR] > =A0 =A0 [exec] [ERROR] > =A0 =A0 [exec] [ERROR] The system is out of resources. > =A0 =A0 [exec] [ERROR] Consult the following stack trace for details. > =A0 =A0 [exec] [ERROR] java.lang.OutOfMemoryError: PermGen space > =A0 =A0 [exec] [ERROR] at java.lang.ClassLoader.defineClass1(Native Metho= d) > =A0 =A0 [exec] [ERROR] at > java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) > =A0 =A0 [exec] [ERROR] at > java.lang.ClassLoader.defineClass(ClassLoader.java:615) > =A0 =A0 [exec] [ERROR] at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.defineClass(URLClassLoader.java:283) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.access$000(URLClassLoader.java:58) > =A0 =A0 [exec] [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.ja= va:197) > =A0 =A0 [exec] [ERROR] at java.security.AccessController.doPrivileged(Nat= ive > Method) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > =A0 =A0 [exec] [ERROR] at > org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(Isolated= ClassLoader.java:56) > =A0 =A0 [exec] [ERROR] at java.lang.ClassLoader.defineClass1(Native Metho= d) > =A0 =A0 [exec] [ERROR] at > java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) > =A0 =A0 [exec] [ERROR] at > java.lang.ClassLoader.defineClass(ClassLoader.java:615) > =A0 =A0 [exec] [ERROR] at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.defineClass(URLClassLoader.java:283) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.access$000(URLClassLoader.java:58) > =A0 =A0 [exec] [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.ja= va:197) > =A0 =A0 [exec] [ERROR] at java.security.AccessController.doPrivileged(Nat= ive > Method) > =A0 =A0 [exec] [ERROR] at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > =A0 =A0 [exec] [ERROR] at > org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(Isolated= ClassLoader.java:56) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.jvm.Gen.(Gen.java:157= ) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.jvm.Gen.instance(Gen.java:7= 4) > =A0 =A0 [exec] [ERROR] at > com.sun.tools.javac.main.JavaCompiler.(JavaCompiler.java:314) > =A0 =A0 [exec] [ERROR] at > com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:72) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java= :340) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java= :279) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java= :270) > =A0 =A0 [exec] [ERROR] at com.sun.tools.javac.Main.compile(Main.java:87) > =A0 =A0 [exec] [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Na= tive > Method) > =A0 =A0 [exec] [ERROR] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > =A0 =A0 [exec] [ERROR] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > =A0 =A0 [exec] [ERROR] at java.lang.reflect.Method.invoke(Method.java:597= ) > =A0 =A0 [exec] [ERROR] -> [Help 1] > =A0 =A0 [exec] [ERROR] > =A0 =A0 [exec] [ERROR] To see the full stack trace of the errors, re-run = Maven > with the -e switch. > =A0 =A0 [exec] [ERROR] Re-run Maven using the -X switch to enable full de= bug > logging. > =A0 =A0 [exec] [ERROR] > =A0 =A0 [exec] [ERROR] For more information about the errors and possible > solutions, please read the following articles: > =A0 =A0 [exec] [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > =A0 =A0 [exec] [ERROR] > =A0 =A0 [exec] [ERROR] After correcting the problems, you can resume the = build > with the command > =A0 =A0 [exec] [ERROR] =A0 mvn -rf :org.apache.felix.http.bridge > > -- Rob > > > Ascert - Taking systems to the Edge > robw@ascert.com > +27 87 550 1701 > www.ascert.com > >