From owner-freebsd-ports@FreeBSD.ORG Sat Aug 23 19:14:20 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D9E1A00 for ; Sat, 23 Aug 2014 19:14:20 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2376633EF for ; Sat, 23 Aug 2014 19:14:19 +0000 (UTC) Received: from [192.168.0.101] ([87.139.233.65]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MC7em-1XCR4k490S-008rI9; Sat, 23 Aug 2014 21:14:11 +0200 Message-ID: <53F8E805.6090705@gmx.de> Date: Sat, 23 Aug 2014 21:14:13 +0200 From: olli hauer Reply-To: freebsd-ports@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Fwd: building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java heap space References: <20140823135101.GA28621@sh4-5.1blu.de> <53F8DA83.2090809@FreeBSD.org> In-Reply-To: <53F8DA83.2090809@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:tyiAmIvt24q9NLVcu6Fj5XLCGyu8F5qZ3r5CAvAxcYvL5C9nGe9 T6y1Wh6kP1e5CoVSdhQasu+wIS5FYrQJqQjWmYFeJk/XJRDm6EeUezEUtw7A/fXQo6iNz+g 6Tr+2BrbyjvpgK0Z/YvaJPJNavgWdYKaUWDzXi38ByxFlFFvTNok0lXnV8gJfskUxN/A2UM zoh14ElPE3zUcyTE2AZGA== X-UI-Out-Filterresults: notjunk:1; Cc: Matthias Apitz , Bryan Drewery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2014 19:14:20 -0000 On 2014-08-23 20:16, Bryan Drewery wrote: > On 8/23/2014 8:51 AM, Matthias Apitz wrote: >> >> Hello ljboiler@gmail.com, >> >> Can you as the MAINTAINER of the port please clarify how one can build >> this port on >> >> FreeBSD vm-tiny-r269739 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r269739M: >> Fri Aug 15 18:07:41 CEST 2014 guru@vm-tiny-r269739:/usr/obj/usr/src/sys/GENERIC i386 >> >> $ LANG=C svn info >> Path: . >> Working Copy Root Path: /usr/ports >> URL: svn://svn.freebsd.org/ports/head/java/eclipse >> Relative URL: ^/head/java/eclipse >> Repository Root: svn://svn.freebsd.org/ports >> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 >> Revision: 364388 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: marino >> Last Changed Rev: 361589 >> Last Changed Date: 2014-07-11 23:56:01 +0200 (Fri, 11 Jul 2014) >> >> Thanks in advance >> >> matthias >> >> ----- Forwarded message from Matthias Apitz ----- >> >> Date: Sat, 23 Aug 2014 09:19:10 +0200 >> From: Matthias Apitz >> To: freebsd-ports@freebsd.org >> Cc: freebsd-java@freebsd.org >> Subject: building java/eclipse in HEAD w/ poudriere: >> java.lang.OutOfMemoryError: Java heap space >> >> >> Hello, >> >> I'm building ports in HEAD with poudriere; java/eclipse is failing with >> java.lang.OutOfMemoryError: Java heap space >> >> I've already set in make.conf >> >> MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m" >> >> But tis does not help; the VM where poudriere is running has 4 GByte >> memory and 4 GByte swap space. >> >> Any ideas? Thanks >> >> matthias >> > > Once a solution is found we need it for java/openjdk* as well since they > use all ram in the system. On our package builders this is 96GB. We need > to be able to limit how much they can use for building so they only have > a few GB and not 96. > For FreeBSD >= 9.x rctl can be a solution to limit jail resources. Unluckily it seems that RACCT/RCTL it not a default kernel option and also not a loadable module ... http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-resourcelimits.html#idp72352048 -- olli