Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2014 16:49:26 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Matthias Apitz <guru@unixarea.de>, freebsd-ports@freebsd.org
Subject:   Re: Fwd: building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java heap space
Message-ID:  <53F90C66.80107@FreeBSD.org>
In-Reply-To: <20140823195132.GA1260@tiny-r269739>
References:  <20140823135101.GA28621@sh4-5.1blu.de> <53F8DA83.2090809@FreeBSD.org> <53F8E805.6090705@gmx.de> <53F8E87D.9080502@FreeBSD.org> <20140823195132.GA1260@tiny-r269739>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--rhUK1knjenQcuxSpEFptR6g0Cqe56MDjf
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 8/23/2014 2:51 PM, Matthias Apitz wrote:
> El d=C3=ADa Saturday, August 23, 2014 a las 02:16:13PM -0500, Bryan Dre=
wery escribi=C3=B3:
>=20
>>>> 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 >=3D 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-re=
sourcelimits.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 ad=
ds
>> a lot of overhead with PROC_LOCKS.
>=20
> Reading the handbook, I understand how rctl could help to terminate som=
e
> proc (or log it, or do signaling); but I do not see how rctl could help=

> to get eclipse being built.
>=20
> 	matthias
>=20

Sorry it would not. I am mixing multiple ideas. We need to be able to
both limit the amount of memory a jail can use (RCTL) but also ensure
applications don't think they use all of hw.physmem for building. This
may be actually adding a feature to limit how much memory jails can
think they have. The openjdk ports peer into hw.physmem and assume they
have a ton of memory and fail to build once they hit the limits we've
put in place via ulimit or rctl. Eclipse is probably doing something
similar regarding guessing how much memory it can use.

Do you have MAX_MEMORY set in poudriere.conf? This would cause the
openjdk ports to fail if it is largely different than how much memory
you actually have.

--=20
Regards,
Bryan Drewery


--rhUK1knjenQcuxSpEFptR6g0Cqe56MDjf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJT+QxnAAoJEDXXcbtuRpfPqVYIAKUVIye3AzYhD12gT4rTrXV4
FrJyLOEe5h5KkJKLA/WSZFn2kjLeZuWpfhbXJ8sljR3wdDj6bx0bb8SXC/ULtJSw
PGmjj4Y5cO+LjKdHZ3JXNDR4Xu0I9z5jWAVjrj3vi2xTjEyArBganNrXadwsKG5U
NlzCjmnNxBSKh3SyhE2HviTZPDD0UVkRKxyEMyhg38MD8mSAC3FyqrCNGDugHodQ
xwxuCiALGXh4POoLHaNKAGo2Rws+ZgDIdcpH9iub3qr3gAzmjIKOCMu5mMuT9/sU
VtWIP+7IP8ZZwi74L4YK8SM/OSdm1U8jAnismxGRTaxRBprbEy34hKLIm0UM2sk=
=OGbE
-----END PGP SIGNATURE-----

--rhUK1knjenQcuxSpEFptR6g0Cqe56MDjf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53F90C66.80107>