From owner-freebsd-ports@FreeBSD.ORG Sat Aug 23 19:51:38 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 AA9B1219 for ; Sat, 23 Aug 2014 19:51:38 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B3B0378A for ; Sat, 23 Aug 2014 19:51:38 +0000 (UTC) Received: from [89.204.137.210] (helo=tiny-r269739) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1XLHLb-0002Po-25 for freebsd-ports@freebsd.org; Sat, 23 Aug 2014 21:51:36 +0200 Date: Sat, 23 Aug 2014 21:51:32 +0200 From: Matthias Apitz To: freebsd-ports@freebsd.org Subject: Re: Fwd: building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java heap space Message-ID: <20140823195132.GA1260@tiny-r269739> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-ports@freebsd.org References: <20140823135101.GA28621@sh4-5.1blu.de> <53F8DA83.2090809@FreeBSD.org> <53F8E805.6090705@gmx.de> <53F8E87D.9080502@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53F8E87D.9080502@FreeBSD.org> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.137.210 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:51:38 -0000 El día Saturday, August 23, 2014 a las 02:16:13PM -0500, Bryan Drewery escribió: > >> 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 > > > > > > Yes rctl is something I have considered adding into the build systems to > integrate with poudriere. It would be perfect for this use. However it > is not default because of the same reason I likely won't use it. It adds > a lot of overhead with PROC_LOCKS. Reading the handbook, I understand how rctl could help to terminate some proc (or log it, or do signaling); but I do not see how rctl could help to get eclipse being built. matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign