Fwd: building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java heap space

Bryan Drewery bdrewery at FreeBSD.org
Sat Aug 23 21:49:40 UTC 2014


On 8/23/2014 2:51 PM, Matthias Apitz wrote:
> 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
> 

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.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140823/34257e1a/attachment.sig>


More information about the freebsd-ports mailing list