felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart McCulloch <mccu...@gmail.com>
Subject Re: OOM error while building latest trunk
Date Thu, 16 Apr 2009 16:37:34 GMT
2009/4/17 Sahoo <Sahoo@sun.com>

> Stuart McCulloch wrote:
>
>> 2009/4/16 Sahoo <Sahoo@sun.com>
>>
>>
>>> I consistently faced the following error while building latest trunk and
>>> to
>>> work around, I had to set MAVEN_OPTS=-Xmx512m in my environment. Is it
>>> because there are just a lot of things getting built in the same reactor
>>> requiring more memory?
>>>
>>
>> I'd say that's very likely, also note that an OOM in PermGen means the JVM
>> has exhausted
>> its allocated space for class instances (ie. too many classes and/or proxy
>> classes loaded).
>>
>> There's also an issue wrt. the default maximum heap - depending on which
>> JDK
>> release you
>> use (and even the OS) this can vary from being ~64mb to being half of the
>> physical memory.
>>
>> So setting your MAVEN_OPTS to a reasonably large maximum sounds reasonable
>> to me
>> if you want to build the whole project tree at once.
>>
>>
> If the build does require higher than usual memory, should this not be set
> in build.xml before execing mvn?
>

sure, if you can send me a patched build.xml that works for you I'd be happy
to apply it

Sahoo
>
-- 
Cheers, Stuart

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message